Skip to content

Commit 1c7c3ae

Browse files
committed
1 parent 80307ec commit 1c7c3ae

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/publish.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# - https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions
1313
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#release
1414
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
15+
# - https://docs.npmjs.com/generating-provenance-statements
1516
# - https://github.com/actions/checkout
1617
# - https://github.com/actions/setup-node
1718
# - https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#yarn2-configuration
@@ -67,10 +68,12 @@ jobs:
6768
env:
6869
ARTIFACT: ${{ steps.artifact.outputs.result }}
6970
FLAGS: ${{ steps.dist-tag.outputs.flag }}
70-
run: echo "result=npm publish $ARTIFACT $FLAGS" >>$GITHUB_OUTPUT
71+
run: echo "result=npm publish --provenance $FLAGS $ARTIFACT" >>$GITHUB_OUTPUT
7172
gpr:
7273
needs: preflight
7374
permissions:
75+
contents: read
76+
id-token: write
7477
packages: write
7578
runs-on: ubuntu-latest
7679
environment:
@@ -108,6 +111,8 @@ jobs:
108111
- gpr
109112
- preflight
110113
permissions:
114+
contents: read
115+
id-token: write
111116
packages: write
112117
runs-on: ubuntu-latest
113118
environment:

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
},
3232
"publishConfig": {
3333
"access": "public",
34-
"directory": "./"
34+
"directory": "./",
35+
"provenance": true
3536
},
3637
"type": "module",
3738
"files": [

0 commit comments

Comments
 (0)