Просмотр исходного кода

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

Evan You 1 год назад
Родитель
Сommit
1c3327a0fa
2 измененных файлов с 6 добавлено и 5 удалено
  1. 4 3
      .github/workflows/autofix.yml
  2. 2 2
      .github/workflows/canary-minor.yml

+ 4 - 3
.github/workflows/autofix.yml

@@ -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
 

+ 2 - 2
.github/workflows/canary-minor.yml

@@ -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'