From c7bc9db5d4dbaada522928c42cd0e99d6c5dc6e9 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Mon, 19 Jan 2026 15:55:33 +1100 Subject: [PATCH] chore: switch to npm OIDC publishing --- .github/workflows/test-and-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index a6809d5..1246c91 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -47,6 +47,7 @@ jobs: name: Release permissions: contents: write + id-token: write needs: test runs-on: ubuntu-latest if: github.event_name == 'push' && github.ref == 'refs/heads/main' @@ -59,6 +60,7 @@ jobs: uses: actions/setup-node@v6.2.0 with: node-version: lts/* + registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: | npm install --no-progress --no-package-lock --no-save @@ -79,6 +81,6 @@ jobs: - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: true run: npx semantic-release