Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
name: release
description: Cut a Nota release in three phases. prepare (on a release/X.Y.Z branch from develop) promotes CHANGELOG.md [Unreleased] to a dated version, writes the curated EN + RU release notes in release-notes/ (the one source for the GitHub release and the news channels), bumps the app and engine versions, makes the release image and the PR texts. tag (on main, after the user merged the release PR into develop and the develop → main PR) creates the vX.Y.Z tag. verify (after the user pushed the tag) waits for the build and checks the GitHub draft against the curated notes. Run this when the user asks to release, ship, cut a version, tag a release or check a release build.
user-invocable: true
Cutting a Nota release
Two files describe a release, for two readers:
CHANGELOG.mdis the raw working log. Entries land under## [Unreleased]as work merges ("what we did, we write"), so it can repeat itself or hold changes that a later entry undid. At release time it is only promoted to## [X.Y.Z] — dateand is never rewritten. The CI guard requires the section, and What's New falls back to it for a version without curated notes.release-notes/X.Y.Z.en.mdandrelease-notes/X.Y.Z.ru.mdare the curated text: summarised, deduplicated, checked against the code. Everything published comes from them, and the app bundles the EN file for its What's New window, so the notes must be committed on the release branch before the tag is built. They hold a summary, the full Added / Changed / Fixed list with a commit link on each item, the contributors and the thanks to the people whose issues the release answers (format in P4).scripts/release-notes.sh X.Y.Z <target>renders them for each place:target where it goes full list githubGitHub release body (the workflow uses this) yes post-enEnglish news channels no post-ruRussian news channels no
The release runs through the branches like this. The user does every commit, push and PR by hand. This skill never commits, pushes or opens a PR (see the user-commits rule).
release/X.Y.Z ── /release prepare ── user commits, pushes, opens PR → develop (squash)
develop ── CI green, user merges ── user opens PR develop → main (merge commit)
main ── CI green, user merges ── /release tag ── user pushes the tag
CI ── release.yml builds 6 files + draft release ── /release verify ── user publishes
develop and main are protected (rulesets): changes land only through a pull request
with the macOS, Windows and Linux CI checks green; develop takes squash merges,
main takes merge commits only, so develop → main never rewrites history. Release
tags v* can be created only by maintainers.
Argument (/release <phase> [bump]): the phase is prepare (default), tag or
verify. For prepare the bump is minor or patch (see step P2).
Phase 1 — prepare (on a release/X.Y.Z branch from develop)
P1. Preflight. Stop if any check fails
- On
develop:git rev-parse --abbrev-ref HEAD. - The tree is clean (
git status --porcelainis empty). Otherwise ask the user to commit or stash first, so the release changes stay separate. - Up to date:
git fetch origin, thengit rev-list --left-right --count origin/develop...HEADmust show0behind and0ahead (unpushed commits ondevelopcan't reach it any more except through a pull request). ## [Unreleased]has real entries.- Once the version is chosen (P2), create the branch:
git switch -c release/X.Y.Z. This is the only branch operation the skill does itself; every later step edits files on it.
P2. Choose the bump
The app and the engine always move together, by the same kind of bump:
| bump | when | app | engine |
|---|---|---|---|
minor |
a major feature (new device, view, workflow) | 0.51.2 → 0.52.1 | 0.30.3 → 0.31.1 |
patch |
fixes, polish, small additions | 0.51.2 → 0.51.3 | 0.30.3 → 0.30.4 |
A component that resets starts at 1, never 0. If the user gave no bump, propose one
from the [Unreleased] content and confirm it with them. Preview it with
scripts/release-bump.sh <bump> --dry-run. It refuses a version whose tag already exists.
P3. Promote CHANGELOG.md
Rename ## [Unreleased] to ## [X.Y.Z] — YYYY-MM-DD (date from date +%F). Add a fresh
empty ## [Unreleased] above it. Don't touch the entries: no Highlights and no
rewording. The changelog stays the honest log. Keep the preamble and older sections as they
are.
P4. Write the curated notes, EN and RU
This is the main work of the phase. Create release-notes/X.Y.Z.en.md and
release-notes/X.Y.Z.ru.md. Each has five parts, in this order:
- Summary: the lede and the numbered headline features, for someone who reads only this part.
- Full list: every user-facing change of the release, grouped as Added / Changed / Fixed / Removed.
- Commit links: each full-list item ends with a link to its commit.
- Contributors: everyone who has a commit in the release, linked to their GitHub profile.
- Thanks for the feedback: the authors of the issues (bug reports, feature requests) this release closes or answers, who aren't contributors, linked to their GitHub profile. Left out when there is nobody.
Steps:
Gather.
- The previous tag is the highest version tag:
git tag --list 'v*' --sort=-v:refname | head -1. Don't usegit describeondevelop: release tags sit onmain's merge commits, whichdevelopdoesn't contain, sodescribereturns a tag several releases old. - Read the whole
[X.Y.Z]section you just promoted. scripts/release-credits.sh <prev-tag> origin/develop commitslists every commit of the release (short sha, sha, subject). It's the checklist for the full list.scripts/release-credits.sh <prev-tag> origin/develop contributorsprints the ready Contributors line. It asks GitHub for every commit's authors and co-authors (needsghsigned in) and leaves out bots and AI co-authors.scripts/release-credits.sh <prev-tag> origin/develop reportersprints the ready thanks line: the authors of every issue the release's commits reference (#N, or the issues a referenced pull request closes), minus anyone with a commit in the repository, bots and AI. On stderr it listsissue #N by @login: title— check each one: drop a reporter whose issue the release only mentions without addressing it (a "see #N" in passing, a partial step the issue is still open for).
- The previous tag is the highest version tag:
Reconcile. Merge entries that describe the same thing. Where entries conflict (a shortcut reassigned twice, a feature added and then reworked), the code decides: read the handler, the default or the UI and describe what ships. Drop anything that was added and then removed within the same release. Then build the full list from the commits:
- Each user-facing change is one item, linked to the commit(s) that brought it. A fix and its follow-up make one item with both links.
- Leave out internal or mechanical commits (refactors, CI, tests, release chores) unless a user can feel them. Their authors are still contributors.
- Walk the
commitsoutput once more at the end: every user-facing commit must be in an item.
Write. Each language natively, not as a translation. Format: bold titles and
•bullets, no#headings, so the text pastes into Telegram as is. The two comment markers say where the full list and the contributors start, whatever the language. They are invisible on GitHub, andrelease-notes.shstrips them.<!-- SPDX-License-Identifier: AGPL-3.0-only --> One or two sentences on what defines this release. **1. Biggest user-facing win** A short paragraph: what it is and why a musician cares. Not every changelog detail. **2. Next feature** … <!-- changes --> **Added** • A new capability, one line ([a1b2c3d](https://github.com/nota-daw/nota/commit/<full sha>)) **Changed** • A behaviour users must know: a moved shortcut, a changed default ([e4f5a6b](…), [c7d8e9f](…)) **Fixed** • What no longer goes wrong, said from the user's side ([0a1b2c3](…)) **Removed** • … <!-- contributors --> **Contributors** [@login](https://github.com/login), [@other](https://github.com/other) **Thanks for the feedback** [@reporter](https://github.com/reporter), [@another](https://github.com/another)Rules for the format:
- Rank the summary's sections by importance. A patch release can have just the lede before the full list.
- Groups go in the order Added, Changed, Fixed, Removed; leave out empty groups. Inside a group, put the most noticeable changes first.
- A commit link's text is the 7-character short sha and its URL takes the full sha
from the
commitsoutput. These aredevelop's squash commits. They become part ofmainthrough the develop → main merge, so the links keep working after the release. - New notes have no Also block: the full list replaces it, so nothing is listed twice.
- RU titles: Добавлено, Изменено, Исправлено, Удалено, Участники, Спасибо за обратную связь. The EN and RU files have the same groups, the items in the same order with the same links, the same contributors and the same reporters.
- Contributors: paste the
contributorsline. Resolve everywarn:line it printed on stderr:- An author with no GitHub login can be a second address of someone already listed (the user's work email, for example). Drop that name.
- Otherwise, find the login and link it, or keep the plain name.
- Don't add or remove people by hand otherwise.
- Thanks for the feedback: paste the
reportersline under the contributors, after the review above. It sits after the<!-- contributors -->marker, so the news posts and What's New carry it too. Nobody is in both lines: a contributor is credited as one. - Leave out the title and the download link, because
release-notes.shadds them per target. Use the user's product language: "track", "device card", "piano roll", not class names.
Show the user the three renders and iterate until they approve. The rest of the release depends on this text.
scripts/release-notes.sh X.Y.Z githubhas all five parts.post-enandpost-ruhave the summary, the contributors and the thanks but no full list. A Telegram message holds 4096 characters, and the posts end with the link to the GitHub release, which has the full list.
The app bundles the EN file. What's New shows the summary, then "All changes" with the groups, then the contributors, and the links in it are clickable. The smoke test checks that every full-list item of a shipped notes file ends in a commit link.
P5. Bump the versions
scripts/release-bump.sh <bump> writes VERSION and src/native/nota.engine/VERSION
(both without a trailing newline, read with .Trim() / CMake). The CI checks the tag against
VERSION, so the two must agree.
P6. Feature list and docs
- Run
nota-featuresinauditmode: fold this version's entries intoFEATURES.mdand set its header toX.Y.Z. That change goes into the release commit. - Run
nota-docsinauditmode over the same entries. Its changes are committed in../nota-docs. Missing docs don't block the release; list them in the report.
P7. Release image
Build a 16:9 poster in ../media/news/X.Y.Z-src/ (outside the repo). Start from the last
release's poster.html (ls -d ../media/news/*-src | sort -V | tail -1) and copy its
fonts.
Header: the logo,
Nota X.Y.Z(version in brass), a one-line subtitle taken from the notes' lede, and a mono tag row with the 2–4 headline features.Two or three cards with real screenshots of the headline features. Shoot them from the app (see the UI-verify recipe, with an isolated
NOTA_DATA_DIR) or reuse fresh shots from../nota-docs. Use Ember Graphite colours (nota-design).Render it at 2×:
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new \ --hide-scrollbars --window-size=1280,720 --force-device-scale-factor=2 \ --screenshot="$PWD/../media/news/X.Y.Z.png" "file://$PWD/../media/news/X.Y.Z-src/poster.html"Look at the PNG (Read it) and check for overlaps, clipped text or empty space before showing it to the user. Also save the rendered posts next to it as
../media/news/X.Y.Z.en.mdandX.Y.Z.ru.md(the output ofpost-en/post-ru).
P8. Hand over to the user
Don't commit. Give the user:
- the version change (
app a → b,engine c → d) and the list of changed files:CHANGELOG.md,VERSION,src/native/nota.engine/VERSION,FEATURES.md,release-notes/X.Y.Z.{en,ru}.md, - the commit message
(chore) Release X.Y.Zand the push commandgit push -u origin release/X.Y.Z, - the PR into develop: title
(chore) Release X.Y.Z(it becomes the squash commit message), body = a short list of the changed files, - the PR text for develop → main, opened after the first one is merged. Title
Release X.Y.Z, body = the output ofscripts/release-notes.sh X.Y.Z github(summary, full list and contributors), so the reviewer reads exactly what will be published. Merge it with Create a merge commit (the only methodmainallows), - the image path and any docs gaps,
- the next step: merge both PRs once CI is green, then run
/release tag.
Phase 2 — tag (on main, after the merge)
If the user is still on develop, tell them to run
git switch main && git pull --ff-only. Don't switch branches on their tree yourself if it has changes.Run
scripts/release-tag.sh. It repeats the CI guard locally (on main, clean, equal toorigin/main, the tag is free locally and on origin, the## [X.Y.Z]section and both notes files exist) and then creates the annotated tagvX.Y.Z. It doesn't push.Give the user the push command and the Actions link (
https://github.com/nota-daw/nota/actions/workflows/release.yml):git push origin vX.Y.Z
If the script fails, report its message as is. Common causes: the PR isn't merged yet, or
local main is behind. After the tag, develop needs no sync: the merge commit on main
already has develop as a parent.
Phase 3 — verify (after the tag push)
- Find the run:
gh run list --repo nota-daw/nota --workflow release.yml --limit 3. Wait for it withgh run watch <id> --repo nota-daw/nota --exit-status(run it in the background, because a build takes about 20–30 min). Don't poll in a loop. - If a job failed, show its log tail:
gh run view <id> --log-failed. - When it's green, run
scripts/release-verify.sh X.Y.Z. It checks that the draft body equalsrelease-notes.sh X.Y.Z githubword for word and that all six files are attached (dmg arm64/x86_64, exe x64/arm64, AppImage x86_64/aarch64). - Report the result. If the body differs (someone edited the draft, or the notes changed
after the tag), show the diff and fix it at the source. Don't edit the draft by hand to
make it match. The user reviews the draft and publishes it themselves, then posts
../media/news/X.Y.Z.{en,ru}.mdwithX.Y.Z.pngto the channels. - Interface languages (spec 077): nota-translations pulls each release's English reference
on its own once a day. So that the language list knows this version straight away, start
its publish run now:
gh workflow run publish.yml --repo nota-daw/nota-translations, then check thatreference/X.Y.Z.jsonis on itspublishedbranch (gh api repos/nota-daw/nota-translations/contents/reference/X.Y.Z.json?ref=published -q .name).
Don't
- Don't commit, push, open PRs, push tags or publish the release. All of these are the user's steps.
- Don't reword or summarise inside
CHANGELOG.md. Curated text goes only torelease-notes/. - Don't write published text anywhere except
release-notes/. GitHub and the channels must come from the same files. - Don't type the contributors, reporters or commit shas from memory. Take them from
scripts/release-credits.sh, and resolve its warnings instead of ignoring them. - Don't bump only one of app or engine, and don't reset a component to 0.
- Don't hard-code the date or reuse an existing version or tag.