Skip to content

Commit

Permalink
ci: use node-version-file for autofix and canary workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 17, 2024
1 parent 97f45f3 commit 1c3327a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node version to 18
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- run: pnpm install

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/canary-minor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node version to 18
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

Expand Down

0 comments on commit 1c3327a

Please sign in to comment.