From: Evan You Date: Mon, 17 Jun 2024 14:16:54 +0000 (+0800) Subject: ci: use node-version-file for autofix and canary workflows X-Git-Tag: v3.4.30~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c3327a0fa5983aa9078e3f7bb2330f572435425;p=thirdparty%2Fvuejs%2Fcore.git ci: use node-version-file for autofix and canary workflows --- diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 9615254144..e7f9a4c8d8 100644 --- a/.github/workflows/autofix.yml +++ b/.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 diff --git a/.github/workflows/canary-minor.yml b/.github/workflows/canary-minor.yml index a29f8ff94d..ffb9b384d4 100644 --- a/.github/workflows/canary-minor.yml +++ b/.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'