Skip to content

Commit 0f17fa8

Browse files
committed
ci: configure onRelease.yml for trusted publishing
1 parent 046d319 commit 0f17fa8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/onRelease.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ jobs:
2222
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
2323
id: distTag
2424
npm:
25+
permissions:
26+
id-token: write
27+
contents: read
2528
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
2629
needs: [getDistTag]
2730
with:
31+
trustedPublishing: true
2832
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
2933
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
3034

0 commit comments

Comments
 (0)