Skip to content

ci: publish to npm from CI (trusted publishing) - #47

Open
VickyXAI wants to merge 1 commit into
mainfrom
ci/npm-publish-workflow
Open

VickyXAI wants to merge 1 commit into
mainfrom
ci/npm-publish-workflow

Conversation

@VickyXAI

Copy link
Copy Markdown
Contributor

Copies ClawRouter's publish.yml (package name and Node 22 adjusted to this repo). Publishes on a package.json change to main or via workflow_dispatch, only when package.json is ahead of npm.

One-time setup before it can publish: on npmjs.com → @blockrun/xclawrouter → Settings → Trusted Publisher → GitHub Actions: org BlockRunAI, repo XClawRouter, workflow publish.yml. (Or add an NPM_TOKEN repo secret — the fallback the workflow also reads.)

First run after merge publishes 0.12.194, already on main.

Copied from ClawRouter's publish.yml. Runs on a package.json change to main
or by hand, builds/typechecks/tests, and publishes only when package.json is
ahead of npm, so a re-run never double-publishes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant