2.9 KiB
Releasing
Prerequisites
- GitHub release access for
gianfrancopiana/openclaw-autoresearch - npm trusted publishing configured for
@gianfrancopiana/openclaw-autoresearch- repository:
gianfrancopiana/openclaw-autoresearch - workflow:
.github/workflows/npm-publish.yml - environment:
npm
- repository:
- fallback only: local npm publish access with 2FA or a granular publish token
Release
-
Prepare the version bump from a clean branch:
npm run release:prepare -- <version> --host /absolute/path/to/openclawThis updates
package.json,openclaw.plugin.json, andpackage-lock.json, syncs generated metadata, checks the matchingv<version>tag, runsrelease:verify, and smoke-tests against the supplied OpenClaw checkout.If you do not have a host checkout available, omit
--hostand run the host smoke before publishing:npm run smoke:openclaw-host -- /absolute/path/to/openclawIf you change the minimum supported OpenClaw version, keep
openclaw.install,openclaw.compat, andopenclaw.buildaligned too. -
Open and merge a PR with the version and metadata changes.
-
Create and publish the matching GitHub release/tag from
main:npm run release:check-tag -- v<version> gh release create v<version> --target main --title v<version> --notes-file release-notes.mdPublishing the GitHub release triggers
.github/workflows/npm-publish.yml, which publishes the package to npm with provenance through GitHub OIDC. -
Watch the publish workflow and verify npm:
gh run list --workflow npm-publish.yml --limit 1 npm view @gianfrancopiana/openclaw-autoresearch version npm view @gianfrancopiana/openclaw-autoresearch@<version> version -
Verify the published registry tarball against the same host:
npm run smoke:registry-openclaw-host -- <published-version> /absolute/path/to/openclaw -
Verify install:
openclaw plugins install @gianfrancopiana/openclaw-autoresearchFor a local OpenClaw checkout:
pnpm openclaw plugins install @gianfrancopiana/openclaw-autoresearch
Local fallback
Prefer the GitHub Actions trusted-publishing workflow. If it is unavailable, publish from a clean checkout only:
npm ci
npm run release:verify
npm publish --otp=123456
Replace 123456 with the current code from your authenticator app.
Common failures
If the publish workflow fails because trusted publishing is not configured,
add the npm trusted publisher for .github/workflows/npm-publish.yml and rerun
the release workflow.
If local npm publish fails with E403 and mentions 2FA or bypass tokens, the
current auth on this machine is not sufficient to publish. Either:
- re-run
npm publish --otp=<current-code> - or switch to a granular npm token with publish rights and
Bypass 2FAenabled