Skip to content

Commit b402d7c

Browse files
committed
fix: use OIDC trusted publisher for npm publish
Remove NPM_TOKEN and debug step, rely on OIDC trusted publisher with --provenance flag for secure npm publishing.
1 parent c87a2d3 commit b402d7c

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,8 @@ jobs:
7474
- name: Update version
7575
run: npm version ${{ steps.version.outputs.version }} --no-git-tag-version --allow-same-version
7676

77-
- name: Debug - Check token
78-
run: |
79-
if [ -z "${{ secrets.NPM_TOKEN }}" ]; then
80-
echo "NPM_TOKEN is empty!"
81-
else
82-
echo "NPM_TOKEN is set (length: ${#NPM_TOKEN})"
83-
fi
84-
env:
85-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
86-
8777
- name: Publish to npm
8878
run: npm publish --access public --provenance
89-
env:
90-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9179

9280
- name: Create Release
9381
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)