Skip to content

Commit f01506f

Browse files
committed
chore: Add ability to generate provenance statements
1 parent f4c53bc commit f01506f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/test-and-release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ jobs:
2121
group: ${{ github.ref }}-node-${{ matrix.node-version }}
2222
cancel-in-progress: true
2323

24+
permissions:
25+
# Necessary for semantic-release
26+
contents: write
27+
issues: write
28+
pull-requests: write
29+
# Necessary for npm publish --provenance
30+
# See https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow
31+
id-token: write
32+
# packages: write is only necessary if you want to publish to Github
33+
packages: write
34+
2435
steps:
2536
- name: ⬇️ Checkout repo
2637
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 # pin@main

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,9 @@
9191
"timezone-mock": "^1.3.6",
9292
"typescript": "^5.7.3",
9393
"vitest": "^3.0.4"
94+
},
95+
"publishConfig": {
96+
"access": "public",
97+
"provenance": true
9498
}
9599
}

0 commit comments

Comments
 (0)