From add04a8bbb8f53fc2cf9ad9ac902791251927e4a Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Fri, 19 Dec 2025 09:46:05 -0600 Subject: [PATCH] feat: use Node 24 for npm 11+ (required by Trusted Publishers) --- .github/workflows/release.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44e8c29..ce25cd4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,11 +15,14 @@ jobs: test: name: Publish to NPM runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 24 registry-url: "https://registry.npmjs.org" - name: Install Dependencies @@ -32,14 +35,10 @@ jobs: - name: Push Release if: ${{ !github.event.release.prerelease }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - npm publish --tag latest --access=public + npm publish --tag latest --access=public --provenance - name: Push Pre-Release if: ${{ github.event.release.prerelease }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - npm publish --tag next --access=public + npm publish --tag next --access=public --provenance