Skip to content

Commit bd1aeaf

Browse files
authored
ci: enable npm provenance attestations (#159)
Sets NPM_CONFIG_PROVENANCE=true in the release workflow. The env var is reliable because multi-semantic-release runs npm publish from each package subdirectory, and npm only reads .npmrc from the cwd. Also verify: the npm token is granular (not classic) scoped to @idempot-dev. Classic tokens are being deprecated.
1 parent 8baaf5f commit bd1aeaf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ jobs:
4646
run: NPM_CONFIG_NPMCLIENT=pnpm pnpm exec multi-semantic-release
4747
env:
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NPM_CONFIG_PROVENANCE: true

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
registry=https://registry.npmjs.org/
2-
workspaces-update=false
2+
workspaces-update=false
3+
provenance=true

0 commit comments

Comments
 (0)