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>
This commit is contained in:
Vance Ingalls
2026-03-26 17:05:51 +00:00
committed by Vance Ingalls
co-authored by Claude Opus 4.6
parent 93cca290b8
commit 1ead0c9fc0
+10
View File
@@ -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