From e06e33f0fc99018dd66c8e20188dd4036cbafb9b Mon Sep 17 00:00:00 2001 From: sepehr-safari Date: Wed, 8 Jul 2026 11:00:13 +0300 Subject: [PATCH] fix(ci): add build step before publish + pass NPM_TOKEN as NODE_AUTH_TOKEN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two fixes for the release workflow: 1. Add 'pnpm build' step before changesets publish — dist/ must exist for npm publish (CLI bin was missing: 'No bin file found at dist/index.js') 2. Pass NPM_TOKEN as NODE_AUTH_TOKEN env var to the changesets action — npm reads NODE_AUTH_TOKEN for registry auth, not NPM_TOKEN --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6cc82d7..241c382 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,6 +38,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Build packages + run: pnpm build + - name: Create release PR or publish id: changesets uses: changesets/action@v1.9.0 @@ -49,6 +52,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Create ecosystem tag and GitHub release if: steps.changesets.outputs.published == 'true'