From d27fe623aff3121dda9fe31a3288fe8996f9cd50 Mon Sep 17 00:00:00 2001 From: Katy Bowman Date: Fri, 25 Sep 2026 11:34:03 -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..d03553de 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