From 0e2471eef0f7dcb46a0342a8376e34f4aec2d770 Mon Sep 17 00:00:00 2001 From: Katy Bowman Date: Fri, 25 Sep 2026 11:58:34 -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 5c3333c..1b35e7f 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -23,10 +23,13 @@ jobs: - uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main 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