]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
ci: use `.node-version` to maintain node version (#8986)
author丶远方 <yangpanteng@gmail.com>
Fri, 20 Oct 2023 07:41:01 +0000 (15:41 +0800)
committerGitHub <noreply@github.com>
Fri, 20 Oct 2023 07:41:01 +0000 (15:41 +0800)
.github/workflows/canary.yml
.github/workflows/ci.yml
.github/workflows/size-data.yml
.github/workflows/size-report.yml
.node-version [new file with mode: 0644]

index e2f411c8e09f446289fa984ecb9c598aead1805f..61265c2d0e66037ed88dd1150fb3a20bd4d252b5 100644 (file)
@@ -17,10 +17,10 @@ jobs:
       - name: Install pnpm
         uses: pnpm/action-setup@v2
 
-      - name: Set node version to 18
+      - name: Install Node.js
         uses: actions/setup-node@v3
         with:
-          node-version: 18
+          node-version-file: '.node-version'
           registry-url: 'https://registry.npmjs.org'
           cache: 'pnpm'
 
index 8fd0389f41c3ac439c2630df5f7d923c7327232f..db874b1240ef32f14691600f5e9a51ed3b17c9fc 100644 (file)
@@ -22,10 +22,10 @@ jobs:
       - name: Install pnpm
         uses: pnpm/action-setup@v2
 
-      - name: Set node version to 18
+      - name: Install Node.js
         uses: actions/setup-node@v3
         with:
-          node-version: 18
+          node-version-file: '.node-version'
           cache: 'pnpm'
 
       - run: pnpm install
@@ -44,10 +44,10 @@ jobs:
       - name: Install pnpm
         uses: pnpm/action-setup@v2
 
-      - name: Set node version to 18
+      - name: Install Node.js
         uses: actions/setup-node@v3
         with:
-          node-version: 18
+          node-version-file: '.node-version'
           cache: 'pnpm'
 
       - run: pnpm install
@@ -73,10 +73,10 @@ jobs:
       - name: Install pnpm
         uses: pnpm/action-setup@v2
 
-      - name: Set node version to 18
+      - name: Install Node.js
         uses: actions/setup-node@v3
         with:
-          node-version: 18
+          node-version-file: '.node-version'
           cache: 'pnpm'
 
       - run: pnpm install
@@ -96,10 +96,10 @@ jobs:
       - name: Install pnpm
         uses: pnpm/action-setup@v2
 
-      - name: Set node version to 18
+      - name: Install Node.js
         uses: actions/setup-node@v3
         with:
-          node-version: 18
+          node-version-file: '.node-version'
           cache: 'pnpm'
 
       - run: pnpm install
index 8068b8645b6d1c49873c7c8bd0244e8334530912..83141e242f832064244e1d0909deb0a871c7d505 100644 (file)
@@ -24,10 +24,10 @@ jobs:
       - name: Install pnpm
         uses: pnpm/action-setup@v2
 
-      - name: Set node version to LTS
+      - name: Install Node.js
         uses: actions/setup-node@v3
         with:
-          node-version: lts/*
+          node-version-file: '.node-version'
           cache: pnpm
 
       - name: Install dependencies
index 8acf464ae37566c2c056527dc4d6a5c80a367ca2..cdfce9a979f6cf530bd0a0f05998d0f7d20491a1 100644 (file)
@@ -26,10 +26,10 @@ jobs:
       - name: Install pnpm
         uses: pnpm/action-setup@v2
 
-      - name: Set node version to LTS
+      - name: Install Node.js
         uses: actions/setup-node@v3
         with:
-          node-version: lts/*
+          node-version-file: '.node-version'
           cache: pnpm
 
       - name: Install dependencies
diff --git a/.node-version b/.node-version
new file mode 100644 (file)
index 0000000..209e3ef
--- /dev/null
@@ -0,0 +1 @@
+20