From 1ead0c9fc0ec28a2ceef4cf95a80532c328d3d01 Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Wed, 25 Mar 2026 21:25:07 -0700 Subject: [PATCH] fix(ci): publish CLI from temp copy to avoid workspace mutation Copy packages/cli to a temp directory before renaming to "hyperframes" for publish. Avoids corrupting the workspace if the job fails mid-way. Addresses review feedback on #47. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/publish.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4e22ea1b4c..8e44607aac 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,10 +49,20 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish hyperframes (CLI) +<<<<<<< HEAD continue-on-error: true run: npm --workspace packages/cli publish --access public --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} +======= + run: | + cd packages/cli + TMPDIR=$(mktemp -d) + cp -r . "$TMPDIR/" + cd "$TMPDIR" + npm pkg set name=hyperframes + pnpm publish --access public --provenance --no-git-checks +>>>>>>> b75181d (fix(ci): publish CLI from temp copy to avoid workspace mutation) - name: Create GitHub Release continue-on-error: true