Skip to content

Commit 7b8b012

Browse files
committed
ci: switch npm publish to OIDC Trusted Publishing
Override NODE_AUTH_TOKEN to empty so npm uses OIDC instead of legacy token authentication. Trusted Publisher is configured on npmjs.com for geolonia/geonicdb-cli + publish.yml.
1 parent 3e62c2a commit 7b8b012

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,7 @@ jobs:
7777
exit 1
7878
fi
7979
- run: npm run build
80-
- run: npm publish --provenance
80+
- name: Publish to npm (OIDC Trusted Publishing)
81+
run: npm publish --provenance
82+
env:
83+
NODE_AUTH_TOKEN: ""

0 commit comments

Comments
 (0)