From ab3a79be387cffd09b8bd9d2c5dc4d80235017d6 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Tue, 25 Aug 2026 12:22:42 -0500 Subject: [PATCH] Update GitHub Actions workflow for publishing Added permissions for OIDC and updated publish step. --- .github/workflows/publish.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c351fc9..d6086e7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,10 @@ on: release: types: [published] +permissions: + id-token: write # Required for OIDC + contents: read + jobs: publish: runs-on: ubuntu-latest @@ -23,5 +27,6 @@ jobs: - name: Publish run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # Commented out below to try trusted publishers via https://docs.npmjs.com/trusted-publishers + # env: + # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}