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
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ jobs:
cli-v*)
tag="${GITHUB_REF_NAME#cli-v}"
package_dir="./packages/cli"
dist_tag="latest"
;;
v*)
tag="${GITHUB_REF_NAME#v}"
package_dir="."
dist_tag="next"
;;
*)
echo "Unsupported release tag $GITHUB_REF_NAME" >&2
Expand All @@ -58,12 +60,13 @@ jobs:
exit 1
fi
echo "package_dir=$package_dir" >> "$GITHUB_OUTPUT"
echo "dist_tag=$dist_tag" >> "$GITHUB_OUTPUT"

- name: Publish to npm
if: github.event_name == 'push'
# The dist-tag comes from publishConfig in package.json, so alpha
# releases land on `next` and never move `latest`.
run: npm publish "${{ steps.release.outputs.package_dir }}" --provenance --access public
# The tag namespace selects the package and its public dist-tag.
# CLI prereleases intentionally remain installable without --tag.
run: npm publish "${{ steps.release.outputs.package_dir }}" --tag "${{ steps.release.outputs.dist_tag }}" --provenance --access public
env:
# Ignored when the package uses trusted publishing; kept so the
# workflow also works with a classic automation token.
Expand Down
2 changes: 1 addition & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@miakapp/cli",
"version": "4.0.0-alpha.2",
"version": "4.0.0-alpha.3",
"description": "Agent-first Miakapp command line: check, build, publish, activate and roll back home components",
"type": "module",
"engines": {
"bun": ">=1.2.23",
"node": ">=22.9"
},
"bin": {
"miakapp": "./bin/miakapp.js"
"miakapp": "bin/miakapp.js"
},
"files": [
"assets",
Expand All @@ -30,7 +30,8 @@
"directory": "packages/cli"
},
"publishConfig": {
"access": "public"
"access": "public",
"tag": "latest"
},
"keywords": [
"Miakapp",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
*/
export const PACKAGE_NAME = '@miakapp/cli';

export const CLI_VERSION = '4.0.0-alpha.2';
export const CLI_VERSION = '4.0.0-alpha.3';
Loading