Skip to content

Commit

Permalink
chore: setup node for self runner (#4845)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanjoi authored Oct 24, 2023
1 parent 83ae977 commit 0169e4e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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'}}
Expand Down

0 comments on commit 0169e4e

Please sign in to comment.