diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml index 141bed825783..8d83ef1e68b7 100644 --- a/.github/workflows/type-check.yml +++ b/.github/workflows/type-check.yml @@ -17,13 +17,23 @@ jobs: env: RUNNER_CONTEXT: ${{ toJson(runner) }} run: echo "$RUNNER_CONTEXT" + - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 1 - name: Install Pnpm - run: corepack enable + uses: pnpm/action-setup@v2 + + - name: Show Pnpm Version + run: pnpm -v + + - name: Setup Node.js 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'pnpm' - name: Check skip CI run: echo "RESULT=$(node ./scripts/skipCI.js)" >> "$GITHUB_OUTPUT" @@ -32,12 +42,6 @@ jobs: - name: Log skip CI result run: echo "${{steps.skip-ci.outputs.RESULT}}" - - name: Setup Node.js 18 - uses: actions/setup-node@v3 - with: - node-version: "18" - cache: 'pnpm' - - name: Nx Cache id: nx-cache if: ${{steps.skip-ci.outputs.RESULT != 'true'}}