Skip to content

Commit dfa6c3c

Browse files
author
Bruno
authored
Merge pull request #756 from balancer/fix-workflow-provenance
Fix workflow provenance and write access
2 parents 99be267 + 8c331e5 commit dfa6c3c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
permissions:
88
id-token: write # Required for OIDC
9-
contents: read
9+
contents: write # Required for pushing git tags
1010

1111
jobs:
1212
release:
@@ -31,4 +31,5 @@ jobs:
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
NPM_CONFIG_PROVENANCE: true
3435

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"test": "vitest dev",
2828
"test:ci": "vitest run",
2929
"changeset": "changeset",
30-
"changeset:release": "pnpm build && changeset publish",
30+
"changeset:release": "pnpm build && changeset publish --provenance",
3131
"example": "npx tsx ./examples/lib/executeExample.ts",
3232
"update:deployments": "npx tsx ./scripts/updateDeployments.ts && pnpm format"
3333
},

0 commit comments

Comments
 (0)