fix(ci): restore registry-url for npm OIDC trusted publishing

Without registry-url, npm CLI cannot initiate the OIDC authentication
flow against the npm registry, causing ENEEDAUTH errors.
This commit is contained in:
kite 2026-05-22 15:52:23 +08:00
parent 525fb7806a
commit 6d952b6180

View file

@ -77,6 +77,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Inject version from tag
run: jq --arg v "${GITHUB_REF_NAME#v}" '.version = $v' package.json > package.json.tmp && mv package.json.tmp package.json