ci: use node-version-file for autofix and canary workflows

This commit is contained in:
Evan You 2024-06-17 22:16:54 +08:00
parent 97f45f363a
commit 1c3327a0fa
No known key found for this signature in database
GPG Key ID: B9D421896CA450FB
2 changed files with 6 additions and 5 deletions

View File

@ -16,11 +16,12 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
- 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

View File

@ -19,10 +19,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
- 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'