File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ jobs:
131
131
environment : npm
132
132
permissions :
133
133
contents : write
134
+ id-token : write
134
135
if : needs.state.outputs.publish == 'true'
135
136
runs-on : ubuntu-latest
136
137
steps :
@@ -153,6 +154,7 @@ jobs:
153
154
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
154
155
TARBALL : ${{ steps.pack.outputs.tarball }}
155
156
TAG : ${{ steps.pack.outputs.tag }}
157
+ NPM_CONFIG_PROVENANCE : true
156
158
- name : Create Github Release
157
159
uses : actions/github-script@v7
158
160
env :
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ PACKAGE_JSON_VERSION="$(tar xfO "$TARBALL" package/package.json | jq -r .version
9
9
echo " //registry.npmjs.org/:_authToken=\$ {NPM_TOKEN}" > .npmrc
10
10
11
11
# Actual publish
12
- npm publish --provenance " $TARBALL " --tag " $TAG "
12
+ npm publish " $TARBALL " --tag " $TAG "
13
13
14
14
# Clean up tags
15
15
delete_tag () {
You can’t perform that action at this time.
0 commit comments