mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-05 05:37:09 +00:00
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:
committed by
Vance Ingalls
co-authored by
Claude Opus 4.6
parent
93cca290b8
commit
1ead0c9fc0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user