Aller au contenu

Publications

Releasing

How OSS releases are cut, built, published, and tagged.

Ce contenu n’est pas encore disponible dans votre langue.

This document is for maintainers cutting a release. End users should look at README.md; contributors at CONTRIBUTING.md. The Homebrew tap layout is documented separately in specs/homebrew-tap.md.

All packages in this monorepo (the @nowline/* npm packages and the VS Code extension) share a single version and ship together. The release pipeline lives in .github/workflows/release.yml.

We use Semantic Versioning — MAJOR.MINOR.PATCH, tagged vMAJOR.MINOR.PATCH. Every package in packages/* is kept lock-step at the same version.

  • 0.x.y — public API and AST JSON schema may change between minor versions; patch releases are bug-fix only. Call out breaking changes in the CHANGELOG.
  • 1.0.0 and after — MAJOR is reserved for breaking changes to the DSL, AST schema, or CLI surface. Minors add features without breaking. Patches are bug-fixes.

The DSL itself uses an independent integer-only version (nowline v1, v2, …) declared inside .nowline files; that contract lives in specs/dsl.md and is not tied to package SemVer.

packages/*/package.json#version always reflects the last released version on main. To keep dev builds distinguishable from real releases without rewriting package.json between every commit, the CLI appends git build metadata to its --version output (per SemVer §10):

Build nowline --version
Tagged release (HEAD == vX.Y.Z) 0.1.0
Dev build, clean tree 0.1.0+abc1234
Dev build, uncommitted changes 0.1.0+abc1234.dirty

The +... suffix is informational metadata only; npm and the VS Code Marketplace strip / reject it on their own version fields, so it never reaches a published artifact. The metadata is captured at compile time by packages/cli/scripts/bundle-templates.mjs (which shells out to git rev-parse, git describe --exact-match, and git status --porcelain).

Before cutting a release, on main:

  1. CI is green on the latest main commit (Linux, macOS, Windows).

  2. The pending changelog describes what ships. cut-release folds the fragments in as written (Changelog workflow), so read them first:

    • Run make changelog-preview and check each entry against main.
    • Merge duplicates, and rewrite or drop entries a later PR superseded.
    • Drop removals of anything that never shipped in a release.
    • Prefix each breaking change **Breaking:**, and make each removal say what to use instead.
    • Land the edits in an ordinary PR before the dispatch. There is no release PR, and cut-release doesn’t rewrite notes.

    lolay/nowline#209 is what this pass looks like when the authoring rule wasn’t followed.

  3. Examples render cleanly. pnpm build (which runs pnpm samples and pnpm fixtures) should produce the expected SVGs without warnings.

  4. Smoke-test the standalone binary locally with pnpm --filter @nowline/cli compile:local, then run examples/minimal.nowline through every export format using the platform-suffixed binary the script produces — ./packages/cli/dist-bin/nowline-<platform>-<arch> (e.g. nowline-macos-arm64 on Apple Silicon, nowline-linux-x64 on Linux/amd64). CI smoke-tests all six binaries on native runners (make smoke runs the same checks); the local run is a last check against the exact toolchain on your machine.

  5. Required secrets are in place. All five secrets in the Required secrets table below must exist on lolay/nowline. The first-ever release also needed the lolay/homebrew-tap repo seeded and the Marketplace / Open VSX namespaces created — that one-time setup is now done; subsequent releases skip it. (Forking maintainers can recreate the namespaces from each registry’s “create publisher” flow; the formula seed lives at scripts/homebrew-tap/.)

There are two ways to trigger a release; the dispatch UI is the default.

  1. Go to Actions → Release → Run workflow on lolay/nowline.
  2. Pick the level (patch / minor / major).
  3. Click Run workflow.

This kicks off the cut-release job, which:

  1. Mints a one-hour token for the lolay-nowline-release GitHub App and checks out main with it (ops/release-app.md). GITHUB_TOKEN-pushed tags do not trigger downstream workflows, which would defeat the whole point; an App token push does, and the App is a bypass actor on main’s ruleset.
  2. Runs node .github/scripts/bump-version.mjs <level> to rewrite every packages/*/package.json to the next SemVer, and to sync that version into the tracked MCP metadata (packages/mcp/manifest.json for the .mcpb, packages/mcp/server.json for the MCP registry, gemini-extension.json, and the two plugin manifests under plugins/nowline/) via scripts/sync-mcp-metadata.mjs.
  3. Runs make release-changelog VERSION=<version> (python3 scripts/changelog.py release <version>) to fold every fragment in .changelog/ and packages/vscode-extension/.changelog/ into a new ## [X.Y.Z] - YYYY-MM-DD section of the CHANGELOG.md beside it, and delete the fragments.
  4. Runs make release-commit VERSION=<version> (.github/scripts/release-commit.sh), which commits the bump, the changelog sections and the fragment deletions as release vX.Y.Z, then fails if any tracked file is still dirty, so a file the bump rewrote but the commit missed stops the cut before a tag exists. scripts/test/release-cut.test.mjs dry-runs steps 2 to 4 in a throwaway worktree on every make test, so the same drift fails the PR that introduces it (v0.10.0 was first tagged without the plugin manifests this way).
  5. Tags vX.Y.Z.
  6. Pushes both the commit and the tag to main.

The tag push then re-triggers release.yml under event_name == 'push', which runs the actual build/publish jobs (the cut-release job is gated to dispatch-only; the build/publish jobs are gated to tag-pushes-only).

If the dispatch flow is unusable (e.g. PAT expired), you can do the same thing locally:

Terminal window
node .github/scripts/bump-version.mjs patch # or minor / major; prints new version, syncs MCP metadata
make release-changelog VERSION=X.Y.Z # folds .changelog/ fragments, deletes them
make release-commit VERSION=X.Y.Z # commits as `release vX.Y.Z`, fails on anything left out
git tag vX.Y.Z
git push origin main
git push origin vX.Y.Z

The tag push triggers the same downstream jobs.

Motivating incident. The v0.3.0 release run (#26337633859) failed because CI did not exercise the same build surface as the release. The root-cause fix is the dual-event design below: every PR now runs the same 10-cell matrix the release does.

flowchart LR
prOpen["Open PR / push to PR head"] --> ci["ci.yml \n lint-workflows + build-test + bundle-size \n + release-build-smoke -> build.yml (upload: false) \n PR pushes cancel prior in-flight runs"]
mergePush["Squash-merge to main"] --> ci
bumppush["cut-release bump commit on main \n (author = nowline-release-bot)"] --> ciLight["ci.yml \n lint-workflows + build-test + bundle-size \n (release-build-smoke skipped by author filter) \n main pushes never cancel"]
tagpush["Tag v* push"] --> reuse2["release.yml -> build.yml (upload: true)"] --> publish["publish matrix"]
dispatch["workflow_dispatch"] --> cut[cut-release] --> bumppush
cut --> tagpush
branchPush["Push to branch \n (no PR)"] -.->|no trigger| void["(nothing runs)"]

build.yml is the single source of truth for the 10-cell build matrix. ci.yml calls it with upload: false on every PR commit and every squash-merge to main; release.yml’s build job calls it with upload: true, gated on tag push. The upload flag gates only the actions/upload-artifact steps — every build, pack, and verify step always runs, so PRs exercise the exact surface a tag push would.

publish does needs: build, so GitHub Actions waits for every cell of the build matrix to succeed before any cell of publish starts — that is the gate, no separate job required. Inside the github-release cell of publish, the homebrew tap commit runs as the last sequential step, so the tap fires right after the GH release publish without waiting on the npm or vscode cells.

ci.yml’s release-build-smoke job carries this if: condition:

if: ${{ github.event_name != 'push' || github.event.head_commit.author.email != 'nowline-release-bot@lolay.com' }}

This skips the heavy 10-cell matrix on the version-bump commit that cut-release produces, because release.yml is already about to run the same matrix via build.yml with upload: true. Running both in parallel would waste compute without adding any safety signal — both are reading the same SHA.

The filter uses head_commit.author.email rather than commit-message matching because a human PR could coincidentally start with “release v…”. The email nowline-release-bot@lolay.com is set via the GIT_AUTHOR_EMAIL env variable at the top of release.yml. Cross-reference contract: if that email ever changes, the if: condition in ci.yml’s release-build-smoke job must be updated to match — otherwise bump commits either silently re-run the full matrix in parallel (wasted compute) or the filter stops working (infinite-loop risk during release).

Dispatch-only. Bumps versions, commits, tags, and pushes. See Cutting the release.

Defined in build.yml. One job, one matrix, ten cells. Heterogeneous on purpose so the publish phase can needs: build and inherit “wait for every cell” gating from GitHub Actions for free.

Cell id Runner Produces
bin-macos-arm64 macos-latest nowline-macos-arm64 artifact
bin-macos-x64 macos-latest (arm64; smoke runs under Rosetta) nowline-macos-x64 artifact
bin-linux-x64 ubuntu-latest nowline-linux-x64 + nowline_amd64.deb artifacts
bin-linux-arm64 ubuntu-24.04-arm nowline-linux-arm64 + nowline_arm64.deb artifacts
bin-windows-x64 windows-latest nowline-windows-x64.exe artifact
bin-windows-arm64 windows-11-arm nowline-windows-arm64.exe artifact
pack-npm ubuntu-latest npm-tarballs artifact (eighteen .tgz files)
pack-vsix ubuntu-latest nowline-vscode.vsix artifact
pack-action ubuntu-latest action-mirror bundle artifact
pack-mcp-mcpb ubuntu-latest nowline.mcpb artifact (Claude Desktop Extensions bundle built from packages/mcp/)

Binary cells use bun compile and run the same per-format smoke test (SVG, PNG, PDF, HTML, Mermaid, XLSX, MS Project XML) against examples/minimal.nowline via make smoke (scripts/smoke-binary.sh). Every cell runs on a runner that can execute its own binary, so all six shipped binaries are executed: the arm64 Linux and Windows cells use the native ubuntu-24.04-arm and windows-11-arm runners (free for public repos), and bin-macos-x64 runs under Rosetta on the arm64 macos-latest. The script decides from the host’s uname whether it can execute a binary; under GitHub Actions a cross-target skip fails the step unless the cell sets SMOKE_ALLOW_CROSS_TARGET=1. The two linux cells additionally invoke scripts/build-deb.sh on the binary they just produced — keeping the binary→deb chain intra-cell skips an artifact upload/download round-trip.

pack-npm runs pnpm pack for the eighteen publishable packages in dependency order (@nowline/core, @nowline/layout, @nowline/renderer, @nowline/browser, @nowline/embed, @nowline/preview-shell, @nowline/lsp, @nowline/lsp-worker, @nowline/export-core, the six per-format @nowline/export-* packages, @nowline/config, @nowline/cli, @nowline/mcp). pnpm 10 rewrites workspace:* to the resolved version inside each tarball, so the publish phase uses plain npm publish <tarball> with no workspace-protocol shenanigans.

Note on @nowline/lsp. As of v0.4.0, @nowline/lsp is published to npm. @nowline/lsp-worker declares "@nowline/lsp": "workspace:*" in its runtime dependencies; pnpm rewrites that to the resolved version inside the published tarball, so npm install @nowline/lsp-worker needs @nowline/lsp resolvable on the registry. Publishing @nowline/lsp also fulfills the contract documented in its own README (npx nowline-lsp for Neovim/JetBrains/Helix/Emacs). The alternative — bundling @nowline/lsp into @nowline/lsp-worker via esbuild — was evaluated and deferred: lsp-worker has no bundler config today (tsc -b only), and introducing one would require designing externals for all four entry points plus langium/vscode-languageserver; that’s a separate project, not a pre-release patch.

Note on @nowline/config. As of v0.4.0, @nowline/config is also published to npm. @nowline/cli declares "@nowline/config": "workspace:*" in its runtime dependencies; pnpm rewrites that to the resolved version inside the published tarball, so npm install -g @nowline/cli needs @nowline/config resolvable on the registry. The primary distribution channels (Homebrew, .deb, GitHub Releases, VS Code Marketplace) are unaffected — they use bun compile binaries where @nowline/config is bundled at compile time.

pack-vsix runs pnpm package in packages/vscode-extension, which produces dist/nowline-vscode.vsix via esbuild + vsce package --no-dependencies. The .vsix bundles the workspace dependencies, so the vscode publish cell never needs to read from npm.

pack-action stages the Marketplace action mirror bundle for lolay/nowline-action.

pack-mcp-mcpb runs make pack-mcpb, producing dist-mcpb/nowline.mcpb for Claude Desktop Extensions. The target never rewrites tracked files: it runs scripts/sync-mcp-metadata.mjs --check and fails if packages/mcp/manifest.json or server.json lags packages/mcp/package.json, since the release commit is what keeps them in sync. Marketplace distribution (registry publish, .mcpb attach, manual submission tracking) is handled by the separate publish-mcp job — see § MCP publishing artifacts and ops/mcp-marketplace.md.

Option B — version-from-tag (future direction). Today the cut-release commit bumps packages/*/package.json#version, which is what stamps the binary’s --version, the embed banner, the .deb control file, the .vsix manifest, and each pnpm pack tarball. A future refactor could keep package.json at 0.0.0-development permanently and inject version from the tag at build time, enabling true cache-by-SHA across CI and release — PRs would build the exact same artifacts as the release without any version-bump commit in the way. Out of scope for v0.4.0; revisit after estate cleanups.

A single job with one matrix of four cells. needs: build means every cell of the build matrix must succeed before any cell here starts — built-in gating, no no-op job. Each cell downloads only the artifacts it needs, then pushes; there is no pnpm install or pnpm -r build happening alongside any external upload.

Cell id Action
npm Downloads npm-tarballs, runs npm publish <tarball> --access public for each tarball in dependency order. Uses NPM_TOKEN.
vscode Downloads nowline-vscode.vsix, runs vsce publish --packagePath … then ovsx publish …. Uses VSCE_PAT and OVSX_PAT.
github-release Downloads binary + deb artifacts, stages them with the man page (nowline.1) and any nowline.<locale>.1 overlays, publishes the GitHub Release via softprops/action-gh-release@v3 with the release’s CHANGELOG.md section as its text (make release-notes, relative links made absolute against the tag; GitHub’s generated PR list only when the section is missing or empty), then commits a refreshed Formula/nowline.rb to lolay/homebrew-tap using HOMEBREW_TAP_TOKEN. The formula references the release-asset URLs that the same cell just published and embeds SHA256s computed on the fly. The cell fails loudly if any expected artifact is missing rather than emitting an all-zero SHA. See specs/homebrew-tap.md for the formula structure and seed-repo bootstrap.

| action-mirror | Downloads action-mirror bundle, syncs to lolay/nowline-action, tags, and publishes a GitHub Release on the mirror. Uses MARKETPLACE_MIRROR_PAT. |

The matrix uses fail-fast: false so a flaky npm publish does not cancel an in-flight Marketplace publish or the github-release/tap cell.

Defined in publish-mcp.yml. Reusable workflow invoked from release.yml with needs: [build, publish] so the MCP registry pointer is never pushed for a half-failed release or before npm is live. A thin standalone caller (publish-mcp-standalone.yml) reuses the same implementation for maintainer re-runs.

Called from release.yml, the job downloads nowline.mcpb from the current run. Called from the standalone workflow, it uses the newest completed tag-push Release run that still holds the artifact, so a release run that failed after its build phase can still be published from; failing that, it falls back to the .mcpb attached to the GitHub Release.

The job checks out refs/tags/v$VERSION rather than the caller’s ref, so a standalone dispatch from main for an older version stamps server.json from that tag’s packages/mcp/package.json (the job fails fast if the two disagree). Ordered steps inside publish-mcp.yml:

  1. Verify npm view @nowline/mcp@$VERSION resolves (waits out npm propagation lag).
  2. Attach nowline.mcpb to the GitHub Release (gh release upload --clobber).
  3. make publish-mcp-registry — DNS domain auth + mcp-publisher publish (last automated step).
  4. Attach nowline-vX.Y.Z-release-notes.md (make release-notes on the tag) to the GitHub Release, and open a maintainer-only + release-ops GitHub issue with the Claude Desktop + Gemini manual submission checklist and a link to that asset. A tag cut before make release-notes existed links its CHANGELOG.md instead.

Uses MCP_PRIVATE_KEY. Operator runbook: ops/mcp-marketplace.md.

We deliberately ship every tag as a stable release — Marketplace pre-release channels require SemVer pre-release suffixes (e.g. 0.1.0-rc.1) that we do not currently produce. Revisit at 1.0 if we want a “next” channel.

Why the homebrew tap commit lives inside the github-release cell

Section titled “Why the homebrew tap commit lives inside the github-release cell”

GitHub Actions matrix cells cannot depend on each other (no intra-matrix needs:). The tap commit must run after the GH release publish because the formula references releases/download/v…/… URLs that have to resolve. Folding the tap steps into the github-release cell as sequential steps on the same runner gives “tap fires right after release, doesn’t wait for vscode or npm” with no extra job, no inter-job artifact re-download, and no separate gate. The trade is that re-running the cell after a tap-only failure also re-attempts the GH release publish; softprops/action-gh-release@v3 is upsert-style on the same tag and overwrites asset uploads, so re-runs are safe.

  • nowline-macos-arm64, nowline-macos-x64
  • nowline-linux-x64, nowline-linux-arm64
  • nowline-windows-x64.exe, nowline-windows-arm64.exe
  • nowline_amd64.deb, nowline_arm64.deb
  • nowline.1 (man page; referenced as a Homebrew resource), plus any nowline.<locale>.1 overlays.
  • nowline.mcpb (Claude Desktop Extensions bundle; attached by publish-mcp.yml after the main publish matrix is green).
  • nowline-vX.Y.Z-release-notes.md (the release’s CHANGELOG.md section as Markdown, for the manual marketplace submissions; attached by publish-mcp.yml).

When a released line needs a fix without dragging in newer work from main:

  1. Cut a release/vX.Y branch from the tag you need to patch (git switch -c release/v0.1 v0.1.0) and push it.
  2. Open a PR against that branch with the fix.
  3. Apply the backport main label.
  4. After CI passes, merge. .github/workflows/backport.yml (using korthout/backport-action) auto-opens a follow-up PR cherry-picking the squash-commit onto main. Reviewer validates CI on the backport PR and merges it. Auto-merge is intentionally off because cherry-picks can conflict with newer work on main.
  5. Cut a new tag from release/vX.Y (v0.1.1) via the manual Release workflow dispatch (run it from the release/v0.1 branch via the Use workflow from dropdown). The tag itself does not need to live on main; the published binaries / packages just need the right code at the right SHA.

All secrets live under Settings → Secrets and variables → Actions on lolay/nowline.

Secret Used by Purpose
RELEASE_APP_PRIVATE_KEY cut-release, editor-release-monitor.yml Private key of the lolay-nowline-release GitHub App (id 3789687, a literal in the workflows). Mints a one-hour token that pushes the release commit + tag, and the daily editor-history commit. GITHUB_TOKEN-pushed tags do not trigger downstream workflow runs, which would prevent the build/publish jobs from firing. Rotation: ops/release-app.md.
NPM_TOKEN publish (npm cell) npm publish for @nowline/* packages. Use an automation token.
VSCE_PAT publish (vscode cell) Azure DevOps personal access token with Marketplace → Manage scope, scoped to the nowline publisher.
OVSX_PAT publish (vscode cell) Open VSX personal access token.
HOMEBREW_TAP_TOKEN publish (github-release cell) Fine-grained PAT with contents: write on lolay/homebrew-tap for committing the refreshed formula.
MCP_PRIVATE_KEY publish-mcp Ed25519 private key (64-character hex) for DNS domain auth on nowline.io. Grants io.nowline/* namespace for automated MCP registry publish. One-time DNS TXT record setup — see ops/mcp-marketplace.md.
MARKETPLACE_MIRROR_PAT publish (action-mirror cell) Fine-grained PAT with contents: write on lolay/nowline-action for mirroring the Marketplace action bundle.

@nowline/mcp ships to more channels than any other Nowline artifact because each agent harness has its own discovery mechanism. All OSS distribution builds and releases from lolay/nowline via release.yml, independently of the .vsix.

Channel Artifact Action at release
npm @nowline/mcp tarball Published automatically by the npm publish cell (same as all other @nowline/* packages).
Public MCP registry (io.nowline/nowline) Registry entry (JSON metadata + npm package ref) Automated by publish-mcp.yml via mcp-publisher login dns + mcp-publisher publish (runs after npm is live; registry publish is the last automated step). Feeds the VS Code MCP gallery and Cursor Marketplace.
Cursor Marketplace Registry-sourced listing No separate action — reads the public MCP registry.
VS Code MCP gallery Registry-sourced listing No separate action — reads the public MCP registry.
GitHub Release nowline.mcpb Automated — publish-mcp.yml attaches the artifact built by pack-mcp-mcpb.
Claude Desktop Extensions directory nowline.mcpb Manual submission (no public API). CI opens a maintainer-only tracking issue with checklist + link to ops/mcp-marketplace.md.
Gemini CLI Extension channel Extension bundle + GEMINI.md Manual submission per the Gemini CLI extension publishing process; tracked on the same release issue.

Curated marketplace submissions (Claude Desktop Extensions, public MCP registry, Gemini CLI extension channel) may require a review period of hours to days for initial acceptance. Subsequent updates to the same publisher id generally receive faster approval. Lead time: plan for at least one sprint of buffer between tagging a release and these marketplace listings going live.

Manual config harnesses (Claude Code’s claude mcp add, Codex CLI’s ~/.codex/config.toml) do not require a submission step — users reference npx @nowline/mcp directly, which resolves from npm. Neither does the agent plugin: the repo is its own marketplace (.claude-plugin/marketplace.json), so the release cut’s version sync of plugins/nowline/ is the whole release step for it.

This section is the canonical record for how Nowline MCP artifacts are named and identified across channels. It is a going-forward convention: already-published VS Code and Cursor .vsix artifacts keep their existing ids (nowline.vscode-nowline) and are not re-published or renamed to apply this convention.

Two independent levers:

  • Publishing id (stable): every OSS MCP artifact uses the bare nowline id, never suffixed (no -oss). The hosted server uses nowline-pro on every channel.
  • Display name: “Nowline” for OSS, permanently (no “OSS” suffix, before or after Pro ships); “Nowline Pro” for the hosted server, matching the pro.nowline.io web app. Enterprise naming is deferred.

Concrete ids per channel:

Channel OSS id Pro id Notes
npm @nowline/mcp n/a (Go server) OSS package; Pro is remote-only
Public MCP registry io.nowline/nowline io.nowline/nowline-pro
Claude Desktop Extensions name: nowline (.mcpb manifest) n/a Pro is remote; no .mcpb
Anthropic’s directory (plugins and connectors) n/a nowline-pro OSS isn’t submitted; it lists only in this repo’s marketplace
Cursor Marketplace nowline (local) nowline-pro (remote OAuth) One store, two listings
VS Code MCP gallery nowline (local) nowline-pro (remote OAuth) Sourced from public MCP registry
Gemini CLI extension name: nowline name: nowline-pro Separate extension, shipped from the proprietary side
Agent plugin nowline (nowline@nowline, repo marketplace) nowline-pro (proprietary side only) Plugins sharing a name can’t be installed side by side; see specs/mcp.md § Plugin bundle

Hard rules:

  • OSS stays @nowline/mcp (Apache-2.0) on npm + public MCP registry (io.nowline/nowline) + .mcpb (name: nowline).
  • The Pro artifact and any bundle that wires it are proprietary “Nowline Pro” artifacts shipped only from the proprietary side — never from lolay/nowline, and never listed in this repo’s plugin marketplace.
  • Tool names stay identical across OSS and Pro (validate, render, read, etc.); only the server display name + id differ.
  • Do NOT re-publish or rename the already-published .vsix (nowline.vscode-nowline) or Cursor extension to apply this convention. It is a going-forward-only change.

Operand-first descriptions on every listing (regardless of phase):

  • OSS: “Create and edit your roadmaps in a plain-text format.”
  • Pro: “Reads/writes your Nowline roadmaps in the cloud. Requires a Nowline Pro account.”

See specs/mcp.md and specs/cli-distribution.md § MCP distribution for the full harness coverage matrix.

CHANGELOG.md follows Keep a Changelog. Entries ship as fragment files, the model HashiCorp’s go-changelog uses, because every PR that appended to a shared ## [Unreleased] section edited the same lines and conflicted with every other open PR.

  • Contributors add .changelog/<name>.txt (branch slug or PR number) holding one ```release-note:<kind> block per entry, <kind> being added, changed, deprecated, removed, fixed or security. VS Code extension entries go in packages/vscode-extension/.changelog/. The format is in .changelog/README.md.
  • Entries describe the change since the last release, not since main at the time. Fragments only accumulate, so a PR that changes, replaces or removes behaviour a pending fragment or legacy ## [Unreleased] entry describes edits or deletes that entry rather than adding one that contradicts it; for a feature that’s new since the last release, later tweaks go into its original fragment. A git revert of a squash-merged PR already deletes its fragment; partial supersession is the case to watch.
  • The Changelog check (.github/workflows/changelog.yml, make changelog-check) validates every fragment and fails a PR that adds none unless it carries the no-changelog label, or that adds an entry or heading to a CHANGELOG.md above its latest release. Fixing a released entry is allowed, and so is editing a legacy ## [Unreleased] entry in place: within a diff hunk, an entry or heading line that replaces a removed one counts as an edit, and only the surplus counts as new.
  • cut-release runs scripts/changelog.py release X.Y.Z (the release-changelog Make target), which writes a new ## [X.Y.Z] - YYYY-MM-DD section into each CHANGELOG.md that has a .changelog/ beside it, grouped by kind and in merge order, then deletes the fragments it used. .changelog/ therefore holds exactly what’s pending. It copies entries as written; consolidating them is the pre-flight pass.
  • The GitHub Release page shows the root CHANGELOG.md’s new section: the github-release publish cell runs make release-notes (scripts/changelog.py notes X.Y.Z) on the tag, so what make changelog-preview printed before the cut is what the page says.

Entries still under a ## [Unreleased] heading from before fragments were adopted are folded into the next release ahead of the fragments, under the same headings, and the heading is dropped. Edit them in place until then; don’t move them into fragments.

Nothing pending. If there are no fragments and no ## [Unreleased] entries, the release still succeeds with an empty ## [X.Y.Z] - YYYY-MM-DD section and prints a note.

  • Verify the GitHub Release page lists all eight binaries / debs.
  • Verify each @nowline/* package shows the new version on npm (all 17 should return X.Y.Z):
    • npm view @nowline/core version
    • npm view @nowline/layout version
    • npm view @nowline/renderer version
    • npm view @nowline/browser version
    • npm view @nowline/embed version
    • npm view @nowline/preview-shell version
    • npm view @nowline/lsp version
    • npm view @nowline/lsp-worker version
    • npm view @nowline/export-core version
    • npm view @nowline/export-png version
    • npm view @nowline/export-pdf version
    • npm view @nowline/export-html version
    • npm view @nowline/export-mermaid version
    • npm view @nowline/export-xlsx version
    • npm view @nowline/export-msproj version
    • npm view @nowline/config version
    • npm view @nowline/cli version
    • npm view @nowline/mcp version
  • Verify Homebrew works: brew update && brew install lolay/tap/nowline && nowline --version — should print X.Y.Z (no +sha suffix on a release build).
  • Verify the VS Code extension shows the new version on the Marketplace and Open VSX.

There’s no automated rollback. If a release is broken:

  1. Open a GitHub issue describing what’s wrong.
  2. Cut a hotfix release with the next patch version (e.g. v0.1.0 → v0.1.1) via the Hotfix flow; do not delete or overwrite the broken tag.
  3. Mark the broken release as a pre-release on GitHub so package managers stop offering it.
  4. For npm-specific breakage, npm deprecate '@nowline/<pkg>@<version>' "broken release; use vX.Y.Z+1" rather than unpublishing — unpublish has a 72-hour window and breaks existing lockfiles.
  5. For Marketplace breakage, you can unpublish a version with vsce unpublish nowline.vscode-nowline@X.Y.Z. Open VSX has a similar ovsx unpublish command.