From f6683241982a206adf449c6626e8bf9c802a0706 Mon Sep 17 00:00:00 2001 From: Katy Bowman Date: Fri, 25 Sep 2026 11:14:49 -0400 Subject: [PATCH] ci: configure onRelease.yml for trusted publishing --- .github/workflows/onRelease.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml index d5738717..031e22d8 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -24,10 +24,13 @@ jobs: id: distTag npm: + permissions: + id-token: write + contents: read uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main needs: [getDistTag] with: + trustedPublishing: true tag: ${{ needs.getDistTag.outputs.tag || 'latest' }} githubTag: ${{ github.event.release.tag_name || inputs.tag }} - secrets: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + secrets: inherit