From 439b6867469604332cadf13b5711cad939791ebd Mon Sep 17 00:00:00 2001 From: Alex Luckett Date: Fri, 6 Mar 2026 15:06:24 +0000 Subject: [PATCH] Add trusted publishing workflow --- .github/workflows/publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4576bbd9..051d3fd1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,11 @@ on: release: types: - published + +permissions: + id-token: write # Required for OIDC trusted publishing + contents: read + jobs: ci: uses: ./.github/workflows/ci.yml @@ -44,5 +49,3 @@ jobs: - name: Publish run: ./scripts/publish-package.sh "${{ github.event.release.tag_name }}" "${{ github.event.release.prerelease }}" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}