Skip to content

Commit f945024

Browse files
committed
CI: switch to OIDC trusted publishing (no npm token needed)
1 parent 1f96142 commit f945024

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/nodejs-build-validation.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,16 @@ jobs:
9292
node-version: 22.x
9393
registry-url: https://registry.npmjs.org
9494

95+
- name: Ensure latest npm (OIDC publish support)
96+
run: npm install -g npm@latest
97+
9598
- name: Build modules
9699
run: npm run build
97100

98101
- name: Publish observable-store
99102
working-directory: modules/observable-store
100103
run: npm publish --provenance --access public ${{ (github.event_name == 'workflow_dispatch' && inputs.dry_run) && '--dry-run' || '' }}
101-
env:
102-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
103104

104105
- name: Publish observable-store-extensions
105106
working-directory: modules/observable-store-extensions
106107
run: npm publish --provenance --access public ${{ (github.event_name == 'workflow_dispatch' && inputs.dry_run) && '--dry-run' || '' }}
107-
env:
108-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)