Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ jobs:
echo "AICTRL_VERSION=$AICTRL_VERSION" >> "$GITHUB_ENV"
bun turbo build

- name: Verify the release tag matches the @aictrl/cli package version
Comment thread
byapparov marked this conversation as resolved.
# publish-if-new.sh publishes @aictrl/cli with the version in
# packages/cli/package.json (only the platform binaries are stamped
# with the tag). If the two disagree, the platform binaries publish
# under the tag while @aictrl/cli silently re-tries an already
# published version and the release half-ships (v0.4.4, first run).
# Fail before publishing anything.
run: |
PKG_VERSION=$(node -p "require('./packages/cli/package.json').version")
if [ "$PKG_VERSION" != "$AICTRL_VERSION" ]; then
Comment thread
byapparov marked this conversation as resolved.
Comment thread
byapparov marked this conversation as resolved.
echo "::error::Release tag version $AICTRL_VERSION does not match packages/cli/package.json version $PKG_VERSION. Bump package.json on main, then re-create the release."
exit 1
fi
echo "Release version $AICTRL_VERSION matches packages/cli/package.json"

- name: Publish @aictrl/util
working-directory: packages/util
run: ${{ github.workspace }}/.github/scripts/publish-if-new.sh "@aictrl/util"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"version": "0.4.3",
"version": "0.4.4",
"name": "@aictrl/cli",
Comment thread
byapparov marked this conversation as resolved.
"description": "Headless execution engine for AI agent skills",
"type": "module",
Expand Down
Loading