Skip to content

Commit da32fb3

Browse files
authored
Add missing id-token: write permission in release pipeline (#5645)
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
1 parent 3a14bcc commit da32fb3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release-cycle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ jobs:
131131
environment: npm
132132
permissions:
133133
contents: write
134+
id-token: write
134135
if: needs.state.outputs.publish == 'true'
135136
runs-on: ubuntu-latest
136137
steps:
@@ -153,6 +154,7 @@ jobs:
153154
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
154155
TARBALL: ${{ steps.pack.outputs.tarball }}
155156
TAG: ${{ steps.pack.outputs.tag }}
157+
NPM_CONFIG_PROVENANCE: true
156158
- name: Create Github Release
157159
uses: actions/github-script@v7
158160
env:

scripts/release/workflow/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PACKAGE_JSON_VERSION="$(tar xfO "$TARBALL" package/package.json | jq -r .version
99
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
1010

1111
# Actual publish
12-
npm publish --provenance "$TARBALL" --tag "$TAG"
12+
npm publish "$TARBALL" --tag "$TAG"
1313

1414
# Clean up tags
1515
delete_tag() {

0 commit comments

Comments
 (0)