Skip to content

Commit 2dd6f4f

Browse files
committed
ci(release): switch to npm Trusted Publishing
Drop NODE_AUTH_TOKEN / NPM_TOKEN in favor of OIDC-based trusted publishing. id-token: write already provides the OIDC token; npm detects it automatically. Upgrade npm to latest because Node 20 ships npm 10, and trusted publishing needs >= 11.5.1. Provenance is implicit with trusted publishing, so the --provenance flag is no longer needed. Requires a Trusted Publisher entry for this package on npmjs.com (GitHub Actions, repo joinflux/capacitor-sensitive-screen, workflow publish.yml) before this release will succeed.
1 parent c39abb6 commit 2dd6f4f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ jobs:
2828
exit 1
2929
fi
3030
31+
- name: Upgrade npm for Trusted Publishing
32+
run: npm install -g npm@latest
33+
3134
- run: npm ci
3235
- run: npm run build
33-
- run: npm publish --access public --provenance
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
- run: npm publish --access public
3637

3738
- name: Create GitHub Release
3839
env:

0 commit comments

Comments
 (0)