Skip to content

Commit 27e261e

Browse files
author
Ibrahim
committed
Use npm Trusted Publishing (OIDC) instead of token with bypass 2FA
- Remove NODE_AUTH_TOKEN requirement - Use OIDC authentication (more secure) - Add --provenance flag for package attestation
1 parent 0d85b27 commit 27e261e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
with:
3131
node-version: '20'
3232
registry-url: 'https://registry.npmjs.org'
33+
# Uses OIDC (Trusted Publishing) - no token needed
3334

3435
- name: Extract version from tag
3536
id: version
@@ -68,11 +69,9 @@ jobs:
6869
run: npm run build --workspace=@xbim/wex-threejs
6970

7071
- name: Publish to npm
71-
env:
72-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7372
run: |
7473
cd packages/wex-threejs
75-
npm publish --access public
74+
npm publish --access public --provenance
7675
7776
- name: Create GitHub Release
7877
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)