File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 12
12
# - https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions
13
13
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#release
14
14
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
15
+ # - https://docs.npmjs.com/generating-provenance-statements
15
16
# - https://github.com/actions/checkout
16
17
# - https://github.com/actions/setup-node
17
18
# - https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#yarn2-configuration
@@ -67,10 +68,12 @@ jobs:
67
68
env :
68
69
ARTIFACT : ${{ steps.artifact.outputs.result }}
69
70
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
71
72
gpr :
72
73
needs : preflight
73
74
permissions :
75
+ contents : read
76
+ id-token : write
74
77
packages : write
75
78
runs-on : ubuntu-latest
76
79
environment :
@@ -108,6 +111,8 @@ jobs:
108
111
- gpr
109
112
- preflight
110
113
permissions :
114
+ contents : read
115
+ id-token : write
111
116
packages : write
112
117
runs-on : ubuntu-latest
113
118
environment :
Original file line number Diff line number Diff line change 31
31
},
32
32
"publishConfig" : {
33
33
"access" : " public" ,
34
- "directory" : " ./"
34
+ "directory" : " ./" ,
35
+ "provenance" : true
35
36
},
36
37
"type" : " module" ,
37
38
"files" : [
You can’t perform that action at this time.
0 commit comments