Skip to content

Commit 99ab48b

Browse files
committed
fix: enable npm provenance with OIDC trusted publishing
- Added NPM_CONFIG_PROVENANCE for signed npm packages - Added OIDC documentation comment to workflow
1 parent d400bd3 commit 99ab48b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/semantic-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ on:
55
branches:
66
- main
77

8+
# OIDC Trusted Publishing - npm provenance for signed packages
9+
# See: https://docs.npmjs.com/generating-provenance-statements
10+
811
jobs:
912
release:
1013
runs-on: ubuntu-latest
1114
permissions:
1215
contents: write
1316
issues: write
1417
pull-requests: write
15-
id-token: write
18+
id-token: write # Required for OIDC trusted publishing
1619

1720
steps:
1821
- name: Checkout
@@ -41,4 +44,5 @@ jobs:
4144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4245
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4346
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
NPM_CONFIG_PROVENANCE: true
4448
run: npx semantic-release

0 commit comments

Comments
 (0)