Fix CLI publish using stale package.json version
The publish_cli job was checking out the default ref instead of the preflight commit, so it published with the pre-bump version. Add the correct ref to checkout and a --app-version flag as a safety override. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
1 parent
c5c12aa738
commit
b175d6b2a3
2 files changed
+7
-3
No files matched your search
@@ -279,6 +279,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ needs.preflight.outputs.ref }}
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
@@ -298,7 +300,7 @@ jobs:
|
||||
run: bun run build --filter=@t3tools/web --filter=t3
|
||||
|
||||
- name: Publish CLI package
|
||||
run: node apps/server/scripts/cli.ts publish --tag alpha --verbose
|
||||
run: node apps/server/scripts/cli.ts publish --tag alpha --app-version "${{ needs.preflight.outputs.version }}" --verbose
|
||||
|
||||
release:
|
||||
name: Publish GitHub Release
|
||||
|
||||
Reference in new issue
Block a user