From 5968ea389c679edd955154f59d28a8b5ca6c51d7 Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Fri, 26 Sep 2025 17:54:30 +0000 Subject: [PATCH] Update release workflow to use Node.js v5 and latest version, enhance npm publish command with provenance and public access flags --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f276aaf..9d8b2e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,9 +33,10 @@ jobs: ref: ${{ github.event.workflow_run.head_sha }} - name: Use Node 20 - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: 20 + node-version: latest + registry-url: https://registry.npmjs.org - name: Setup Bun uses: oven-sh/setup-bun@v1 @@ -132,9 +133,9 @@ jobs: # Publish to npm (requires NPM_TOKEN in repo secrets) - name: Publish to npm - run: npm publish + run: npm publish --provenance --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Create a GitHub Release for the tag - name: Create GitHub Release