From dbb6fa082982be665d2f753ab62adea17b69b91f Mon Sep 17 00:00:00 2001 From: jesse23 Date: Thu, 26 Mar 2026 00:20:25 -0400 Subject: [PATCH] fix: strip dev scripts before semantic-release publish to fix npx --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8903d6..3c32f92 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,8 +20,13 @@ jobs: - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - run: bun install --frozen-lockfile - run: bun run build + - name: Strip dev scripts before publish + run: bun scripts/clean-pkg-scripts.ts strip - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: bunx semantic-release + - name: Restore dev scripts after publish + if: always() + run: bun scripts/clean-pkg-scripts.ts restore