Skip to content

Commit a5383bd

Browse files
authored
fix(ci): use Node 24 for npm OIDC publish (npm >= 11.5.1) (#22)
Signed-off-by: cxhello <caixiaohuichn@gmail.com>
1 parent fa5c0dc commit a5383bd

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,12 @@ jobs:
7474
- uses: actions/checkout@v4
7575
- uses: actions/setup-node@v4
7676
with:
77-
node-version: 22
77+
node-version: 24
7878
registry-url: https://registry.npmjs.org
79-
- name: Ensure npm supports OIDC
80-
run: |
81-
echo "node $(node -v)"
82-
echo "npm $(npm -v)"
83-
npm install -g npm@latest
84-
echo "npm updated to $(npm -v)"
8579
- name: Publish
86-
run: cd nodejs && npm publish
80+
run: |
81+
echo "node $(node -v), npm $(npm -v)"
82+
cd nodejs && npm publish
8783
8884
github-release:
8985
needs: [check, push-tags, release-python, release-nodejs]

0 commit comments

Comments
 (0)