Skip to content

Commit fd102e2

Browse files
committed
ci: upgrade Node.js to v20 and add npm upgrade for Trusted Publishers
- Upgrade Node.js from v18 to v20 in publish workflow - Add npm upgrade step to latest version for Trusted Publishers compatibility - Apply changes to all three job configurations in the workflow ci: 升级 Node.js 到 v20 并为 Trusted Publishers 添加 npm 升级 - 在发布工作流中将 Node.js 从 v18 升级到 v20 - 为 Trusted Publishers 兼容性添加 npm 升级到最新版本的步骤 - 将更改应用到工作流中的所有三个作业配置 Change-Id: I0a9a16a32cef69fa733290f90ad81fef9808a866 Signed-off-by: OhYee <[email protected]>
1 parent e6e8ffc commit fd102e2

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,15 @@ jobs:
6969
- name: Setup Node.js
7070
uses: actions/setup-node@v4
7171
with:
72-
node-version: '18'
72+
node-version: '20'
7373
registry-url: 'https://registry.npmjs.org'
7474

75+
- name: Upgrade npm for Trusted Publishers
76+
run: |
77+
npm --version
78+
npm install -g npm@latest
79+
npm --version
80+
7581
- name: Determine test version
7682
id: version
7783
run: |
@@ -156,9 +162,15 @@ jobs:
156162
- name: Setup Node.js
157163
uses: actions/setup-node@v4
158164
with:
159-
node-version: '18'
165+
node-version: '20'
160166
registry-url: 'https://registry.npmjs.org'
161167

168+
- name: Upgrade npm for Trusted Publishers
169+
run: |
170+
npm --version
171+
npm install -g npm@latest
172+
npm --version
173+
162174
- name: Determine version
163175
id: config
164176
run: |
@@ -285,9 +297,15 @@ jobs:
285297
- name: Setup Node.js
286298
uses: actions/setup-node@v4
287299
with:
288-
node-version: '18'
300+
node-version: '20'
289301
registry-url: 'https://registry.npmjs.org'
290302

303+
- name: Upgrade npm for Trusted Publishers
304+
run: |
305+
npm --version
306+
npm install -g npm@latest
307+
npm --version
308+
291309
- name: Determine version
292310
id: version
293311
run: |

0 commit comments

Comments
 (0)