]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
ci: use node-version-file for autofix and canary workflows
authorEvan You <yyx990803@gmail.com>
Mon, 17 Jun 2024 14:16:54 +0000 (22:16 +0800)
committerEvan You <yyx990803@gmail.com>
Mon, 17 Jun 2024 14:16:54 +0000 (22:16 +0800)
.github/workflows/autofix.yml
.github/workflows/canary-minor.yml

index 96152541448cf67b859b385767665a31bc791a6a..e7f9a4c8d82a4d4a3b80782457eb24ef16959ede 100644 (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
 
index a29f8ff94d606a3c362e6dfe7927ae4b8eb5b834..ffb9b384d4e2111b28cc41fe836ab034e761e05c 100644 (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'