From d9f5e207a822d5413f7faa97440f4d9ea7c52a58 Mon Sep 17 00:00:00 2001 From: Juan Escalada Date: Wed, 14 Jan 2026 16:38:42 +0900 Subject: [PATCH 1/3] chore: try unsetting the tokens and set to execute on PR for testing --- .github/workflows/npm.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 9201db8df..c608d55ef 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -2,6 +2,9 @@ name: Publish to NPM on: release: types: [published] + # Add push on PR for testing purposes + pull_request: + branches: [main] permissions: contents: read id-token: write @@ -28,6 +31,8 @@ jobs: - name: Check if pre-release and publish to NPM run: | + unset NODE_AUTH_TOKEN + unset NPM_TOKEN VERSION=$(node -p "require('./package.json').version") if [[ "$VERSION" == *"-"* ]]; then echo "Publishing pre-release: $VERSION" From 4ebf646bdeef9b5cc252b170e12f6b4232957068 Mon Sep 17 00:00:00 2001 From: Juan Escalada Date: Wed, 14 Jan 2026 16:57:14 +0900 Subject: [PATCH 2/3] chore: attempt to fix Node version and remove env --- .github/workflows/npm.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index c608d55ef..b78402f55 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -22,12 +22,10 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 with: - node-version: '22.x' + node-version: '24' registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm run build - env: - IS_PUBLISHING: 'YES' - name: Check if pre-release and publish to NPM run: | From 33a2a22d48fe04b65a0d26a2a380b8215a319082 Mon Sep 17 00:00:00 2001 From: Juan Escalada Date: Wed, 14 Jan 2026 17:09:20 +0900 Subject: [PATCH 3/3] chore: cleanup npm workflow --- .github/workflows/npm.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index b78402f55..d319ad9b6 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -2,9 +2,6 @@ name: Publish to NPM on: release: types: [published] - # Add push on PR for testing purposes - pull_request: - branches: [main] permissions: contents: read id-token: write @@ -29,8 +26,6 @@ jobs: - name: Check if pre-release and publish to NPM run: | - unset NODE_AUTH_TOKEN - unset NPM_TOKEN VERSION=$(node -p "require('./package.json').version") if [[ "$VERSION" == *"-"* ]]; then echo "Publishing pre-release: $VERSION"