Skip to content

Commit 0a2e863

Browse files
committed
ci: migrate to npm trusted publishing with OIDC
1 parent 7243dca commit 0a2e863

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
cache: 'pnpm'
3535
registry-url: 'https://registry.npmjs.org/'
3636

37+
- name: 📦 Update npm to latest (required for trusted publishing)
38+
run: npm install -g npm@latest
39+
3740
- name: 📦 Install dependencies
3841
run: pnpm install --frozen-lockfile
3942

@@ -55,4 +58,4 @@ jobs:
5558
createGithubReleases: true
5659
env:
5760
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)