From 51b2a242db6cc6a7121935b494bdad3f0cc307c3 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 5 Mar 2026 13:48:57 -0800 Subject: [PATCH] feat: update npm to use trusted publisher flow instead of token --- .github/workflows/increment-minor-version-then-publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/increment-minor-version-then-publish.yml b/.github/workflows/increment-minor-version-then-publish.yml index a8b75da..eb4c769 100644 --- a/.github/workflows/increment-minor-version-then-publish.yml +++ b/.github/workflows/increment-minor-version-then-publish.yml @@ -5,6 +5,10 @@ on: branches: - main +permissions: + id-token: write # Required for OIDC + contents: read + jobs: test: uses: ./.github/workflows/run-tests.yml @@ -61,5 +65,3 @@ jobs: - name: Publish to npm run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}