fix(ci): add NPM_TOKEN support for npm publishing

npm revoked all classic tokens. Workflow now requires NPM_TOKEN secret
with granular access token for publishing.
This commit is contained in:
justsisyphus
2026-01-16 01:23:00 +09:00
parent 7a9e604b2d
commit 5de3d4fb7d

View File

@@ -77,13 +77,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Upgrade npm for OIDC trusted publishing
- name: Upgrade npm
run: npm install -g npm@latest
- name: Configure npm registry
run: npm config set registry https://registry.npmjs.org
- name: Install dependencies
run: bun install
env:
@@ -139,6 +137,7 @@ jobs:
VERSION: ${{ inputs.version }}
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
- name: Delete draft release