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
21 changes: 12 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: publish

# Publishes @openhop/server, @openhop/web, and the openhop CLI to npm whenever
# the version in any of their package.json files on master differs from what's
# already on the registry under the `beta` tag. Lets us ship a release just by
# merging a "chore: bump" PR — no manual `npm publish` step in someone's
# terminal.
# already on the registry. Lets us ship a release just by merging a
# "chore: bump" PR — no manual `npm publish` step in someone's terminal.
#
# `npm publish` (no --tag) sets the `latest` dist-tag, so the npmjs.com
# page + `npm install <pkg>` (no @beta suffix) get the new version on every
# successful publish — no separate dist-tag promote step needed.
#
# Order matters: server + web ship before the CLI because the CLI's
# package.json depends on both. If only one bumped, only that one runs (the
Expand Down Expand Up @@ -86,23 +89,23 @@ jobs:
id: publish_server
if: steps.server_status.outputs.publish == 'true'
working-directory: packages/server
run: npm publish --tag beta --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish @openhop/web
id: publish_web
if: steps.web_status.outputs.publish == 'true'
working-directory: packages/web
run: npm publish --tag beta --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish openhop CLI
id: publish_cli
if: steps.cli_status.outputs.publish == 'true'
working-directory: packages/cli
run: npm publish --tag beta --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -111,7 +114,7 @@ jobs:
# collide with a stale tag from a prior multi-package run:
# cli shipped → v$CLI_VERSION (CLI is the user-facing
# handle for `npx
# openhop@beta`, so its
# openhop`, so its
# version anchors the
# combined release)
# server (± web) → server/v$SERVER_VERSION (server is the lowest
Expand Down Expand Up @@ -158,7 +161,7 @@ jobs:
fi

{
echo "## Published to npm (\`beta\` tag)"
echo "## Published to npm"
if [ "$SERVER_PUBLISHED" = "true" ]; then
echo "- [\`@openhop/server@$SERVER_VERSION\`](https://www.npmjs.com/package/@openhop/server/v/$SERVER_VERSION)"
fi
Expand All @@ -171,7 +174,7 @@ jobs:
echo
echo "## Try it"
echo '```sh'
echo "npx openhop@beta demo"
echo "npx openhop demo"
echo '```'
echo
echo "Auto-generated notes (commit history) below."
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openhop",
"version": "0.1.0-beta.6",
"version": "0.1.0",
"description": "Animated data-flow diagrams your AI agent can write. CLI.",
"repository": {
"type": "git",
Expand Down Expand Up @@ -42,8 +42,8 @@
"dependencies": {
"@fastify/http-proxy": "^11.4.4",
"@fastify/static": "^9.1.3",
"@openhop/server": "0.1.0-beta.2",
"@openhop/web": "0.1.0-beta.4",
"@openhop/server": "0.1.0",
"@openhop/web": "0.1.0",
"commander": "^12.0.0",
"fastify": "^5.0.0",
"yaml": "^2.8.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (process.argv.includes('--api-version')) {

const program = new Command()

program.name('openhop').description('OpenHop — Data Flow Visualization CLI').version('0.1.0-beta.6')
program.name('openhop').description('OpenHop — Data Flow Visualization CLI').version('0.1.0')

// --- serve ---
//
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openhop/server",
"version": "0.1.0-beta.2",
"version": "0.1.0",
"description": "OpenHop API server. Fastify app for storing and serving data-flow definitions.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openhop/web",
"version": "0.1.0-beta.4",
"version": "0.1.0",
"description": "OpenHop web UI. Prebuilt static assets — animated data-flow renderer.",
"repository": {
"type": "git",
Expand Down
Loading