Skip to content

Commit 179474f

Browse files
vanceingallsclaude
andcommitted
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) <noreply@anthropic.com>
1 parent dbb01fb commit 179474f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,20 @@ jobs:
4949
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5050

5151
- name: Publish hyperframes (CLI)
52+
<<<<<<< HEAD
5253
continue-on-error: true
5354
run: npm --workspace packages/cli publish --access public --no-git-checks
5455
env:
5556
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57+
=======
58+
run: |
59+
cd packages/cli
60+
TMPDIR=$(mktemp -d)
61+
cp -r . "$TMPDIR/"
62+
cd "$TMPDIR"
63+
npm pkg set name=hyperframes
64+
pnpm publish --access public --provenance --no-git-checks
65+
>>>>>>> b75181d (fix(ci): publish CLI from temp copy to avoid workspace mutation)
5666

5767
- name: Create GitHub Release
5868
continue-on-error: true

0 commit comments

Comments
 (0)