Release Process
Release Please manages routine version bumps and reviewable release PRs. GitHub Release creation requires an explicit owner-initiated Publish Release workflow run on verified main. Publishing uses npm provenance, GitHub OIDC, and npm Trusted Publishing. Configure npmjs.com trusted publisher settings for repository oaslananka/boardreadyops, workflow publish-npm.yml, and allowed action npm publish; the workflow intentionally avoids long-lived publish credentials.
Release Please reads release-please-config.json and
.release-please-manifest.json. The manifest package uses standard semver tags
such as v1.2.0; component-prefixed tags are disabled so GitHub Release notes,
binary assets, and npm publishing all point at the same immutable release
identity. Historical Git tags such as v1 and v1.71 are protected by the
release-tags ruleset and are not maintained as moving aliases. Use full
vMAJOR.MINOR.PATCH tags for release-critical GitHub Action references. Release notes must come from real changelog changes, not placeholder sentences.
corepack pnpm run docs regenerates compatibility docs, rule docs, Action
input docs, plugin SDK API docs, and the release history page before building
MkDocs. corepack pnpm run gc reruns the same generated-doc steps and fails if
docs/reference/plugin-sdk/, docs/release/history.md, or other generated docs
are stale.
Daily preparation and one-click publication
The release-please workflow prepares and refreshes a reviewable version PR daily
at 06:37 Europe/Istanbul (03:37 UTC). It can also be run manually for
preparation. It does not publish GitHub Releases, create version tags,
or start npm publication, and merging other PRs into main does not trigger
release preparation on every push.
Once the release PR has passed all protected checks and has been intentionally
merged into main, the repository owner publishes the release via
GitHub → Actions → Publish Release → Run workflow (main). That single
input-free manual invocation creates the version tag/GitHub Release using
Release Please in release-only mode and dispatches the existing
publish-npm.yml OIDC/trusted-publishing workflow with the resulting
immutable tag. Binary and container release workflows continue to respond
to the full semver tag as before. A click when no reviewed release is ready
fails closed without dispatching npm publication. Publishing does not
implicitly bypass a held release PR or any required gate.
Local Pre-Release Gate
Run these commands on the exact commit that will be tagged:
corepack enable
corepack pnpm install --frozen-lockfile
corepack pnpm outdated --json || true
corepack pnpm audit --audit-level moderate
ALLOW_MAJOR_RELEASE=true task verify
task test:int
pre-commit run --all-files
actionlint .github/workflows/*.yml
yamllint .github/workflows/ action.yml
gitleaks detect --source . --redact --verbose
corepack pnpm outdated --json is informational manual review output, not a hard release gate. pnpm exits non-zero when any package is outdated; review expected differences manually. Do not run this line under set -e or fail CI solely on its exit code.
Docs Python dependencies are pinned in docs/requirements.txt. CI, docs,
accessibility, and release workflows must install from that file instead of
repeating inline mkdocs, mkdocs-material, or mike versions. Changes to
the docs toolchain lifecycle are governed by
ADR-0007.
Before tagging, inspect each external workflow action metadata and confirm no JavaScript action runs on node12, node16, or node20. Prefer Node24 actions, composite actions, Docker actions, or directly installed official CLIs.
Verify the committed ruleset is aligned:
gh api repos/oaslananka/boardreadyops/rulesets --jq '.[] | select(.name == "main")'
git diff .github/rulesets/main.json
Manual tag and GitHub Release recovery (exception only)
If the reviewed workflow path is unavailable and an exceptional manual recovery has been separately authorized, verify all release gates before creating a tag. Do not use this as the normal one-click path:
git status --short
git tag -a v1.0.0 -m "v1.0.0"
git push origin v1.0.0
Replace v1.0.0 with the target semver tag. Do not retag a version that was
already published. The binary-build workflow owns GitHub Release creation for
tag pushes: it builds every supported binary, generates SHA256SUMS, uploads
the SBOM, and verifies the release asset list before the release is considered
complete. If the workflow publishes a broken artifact, bump the next patch
version and document the incident before re-releasing.
If a tag already exists but the release assets need to be attached after a
workflow fix, manually run binary-build from main with the release-tag
input set to that tag. The workflow checks out the tag before building, so the
tag must contain the binary build scripts.
publish-npm has one canonical publish trigger: workflow_dispatch. The owner-invoked Publish Release workflow dispatches it explicitly with the immutable release tag, and maintainers use the same entry point for controlled backfills or recovery. This avoids relying on follow-on release events caused by a workflow's repository GITHUB_TOKEN.
The publish job runs on a GitHub-hosted runner with id-token: write, upgrades to a Trusted Publishing-capable npm CLI, and fails closed if npm token/basic-auth environment variables or .npmrc credentials are present. The workflow definition must be dispatched from refs/heads/main; release automation and manual recovery both pin --ref main, while the checked-out package remains the immutable release tag supplied through tag. The npm package trusted publisher must be configured for repository oaslananka/boardreadyops, workflow filename publish-npm.yml, and allowed action npm publish. The workflow does not use NPM_TOKEN, NODE_AUTH_TOKEN, or an _authToken entry for normal stable or prerelease publishing.
If the automatic path did not run or a previous workflow fix needs to publish an
already-created release tag, manually dispatch publish-npm from main with
the tag input set to the published release tag:
gh workflow run publish-npm.yml --ref main -f tag=v1.0.0 -f prerelease=false
The workflow checks out the release tag with full history, verifies the tag version matches package.json, requires the tag commit to be an ancestor of current origin/main, and publishes the package with npm provenance. Release automation and maintainer recovery use the same dispatch contract, so already-created release tags can be backfilled after workflow-only fixes without weakening tag ancestry or version checks. Historical backfills validate the immutable package snapshot without rebuilding committed dist/ bundles, because the selected release tag may predate the current reproducible-build workflow fixes.
The release workflow does not move shortened Git tags. The active
release-tags ruleset prevents updates to existing v* refs, including
historical vMAJOR and vMAJOR.MINOR aliases. Changing those refs would
break immutable release references. Older aliases remain at their original
commits; downstream consumers should use full version tags or pinned SHAs.
The publish-npm workflow remains idempotent for already-published versions.
GHCR image aliases (vMAJOR and latest) are a separate container registry
contract and remain managed by container-build.
If the semver tag is already published but the container image needs to be
repaired with the current container packaging from main, manually dispatch the
container workflow with an explicit version and publish flag:
gh workflow run container-build.yml --ref main -f version=1.1.0 -f publish=true
This path builds the current container definition around the already-published
npm package version, then publishes ghcr.io/oaslananka/boardreadyops-full:vX.Y.Z.
For stable versions it also updates the vX and latest image aliases.
Container release jobs require the actual npm tarball to download successfully
before building, since npm version metadata can be visible before the CDN serves
the package bytes. Only this exact, first-party published release tarball probe
uses --min-release-age=0, because the repository's 7-day npm policy applies
to third-party dependency installation and would otherwise reject new releases
we just published. All other dependency-age checks remain intact. The readiness
retry is bounded to 30 attempts at 10-second intervals; container smoke and
security scans are never skipped.
Remote Verification
After creating the GitHub Release:
gh run watch --exit-status
gh release view v1.0.0 --json tagName,isPrerelease,assets,url
npm view boardreadyops version dist.integrity --json
The release is complete only when all release workflows conclude successfully,
the GitHub Release contains all five binary assets plus SHA256SUMS, the
checksums match those assets, and the npm registry shows the published package
version.
Failure Handling
If any workflow fails:
- Fetch the failed logs with
gh run view <run-id> --log-failed. - Reproduce the failed command locally when possible.
- Apply the smallest fix on a branch, run the full local pre-release gate, merge it, and tag a new patch version if the failed release already reached the registry.