From 7f535c1759d5032fcdafcc1a178b6daa078f1b81 Mon Sep 17 00:00:00 2001 From: Felipe Freitag Date: Fri, 17 Apr 2026 13:59:35 -0300 Subject: [PATCH] fix: pass POSTHOG_PUBLIC_KEY to npm publish step npm publish triggers the prepack script which rebuilds the bundle and runs verify-bundle. The previous Build and Verify steps were redundant since prepack does both. Remove them and pass the env var to the publish step so the prepack build has access to it. --- .github/workflows/release.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 406d0b2..09d8b67 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -248,12 +248,6 @@ jobs: cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Build - run: pnpm build - env: - POSTHOG_PUBLIC_KEY: ${{ secrets.POSTHOG_PUBLIC_KEY }} - - name: Verify bundle - run: node scripts/verify-bundle.mjs - name: Determine npm tag id: npm-tag run: | @@ -266,6 +260,8 @@ jobs: fi - name: Publish to npm run: npm publish --provenance --tag ${{ steps.npm-tag.outputs.tag }} + env: + POSTHOG_PUBLIC_KEY: ${{ secrets.POSTHOG_PUBLIC_KEY }} notify-tap: if: github.event_name != 'workflow_dispatch' && needs.release.outputs.prerelease == 'false' name: Trigger Homebrew Tap Update