fix(npm): publish with rotated package token (#1083)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ace Data Cloud Dev
2026-09-05 10:23:06 +08:00
committed by GitHub
parent 3774eaa577
commit 93ca8433de
+5 -4
View File
@@ -25,6 +25,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org
- name: Upgrade npm for trusted publishing
run: npm install --global npm@^11.5.1
@@ -70,10 +71,10 @@ jobs:
- name: Set version
run: npm version "${{ steps.version.outputs.version }}" --no-git-tag-version --allow-same-version
- name: Publish with npm trusted publishing
run: |
unset NODE_AUTH_TOKEN NPM_CONFIG_USERCONFIG
npm publish --access public --registry=https://registry.npmjs.org
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
create-release:
name: Create GitHub Release