From 81a66704342cbc1bef4da70f5c746b0b42576893 Mon Sep 17 00:00:00 2001 From: Jason2866 Date: Wed, 11 Mar 2026 22:48:52 +0100 Subject: [PATCH] use npm publish action --- .github/workflows/publish.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1e3ca64..1a76dd2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,8 +11,11 @@ permissions: jobs: publish: runs-on: ubuntu-latest + permissions: + contents: write + id-token: write # required to use OIDC steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - uses: actions/setup-node@v4 with: @@ -22,4 +25,8 @@ jobs: - run: npm install -g npm@latest - run: npm install - run: npm run build - - run: npm publish --provenance --access public + - name: Publish to NPM registry (OIDC Trusted Publishing) + uses: JS-DevTools/npm-publish@v4 + with: + registry: https://registry.npmjs.org/ + strategy: all