Skip to content
Edit this page

Release checklist

CodeArt is released by hand. This is the flow used for 2.2.0 and 2.3.0. A release is a dated CHANGELOG section, an annotated vX.Y.Z tag and a GitHub release with the same notes. Aim for a small minor or patch release about once a month.

Versions follow Semantic Versioning: a patch for fixes only, a minor for new features and plugin swaps that keep old settings working (with one-time notices), and a major for changes that need users to edit their config.

1. Prepare the branch

  • [ ] Start from an up-to-date main: git fetch origin && git switch -c release-X.Y.Z origin/main.
  • [ ] Every user-visible change has a line under ## [Unreleased] in CHANGELOG.md (Changed, Added, Fixed, Documentation, Removed), and the docs pages match the code.
  • [ ] Renamed or removed settings still work through lua/codeart/compat.lua with a one-time notice, and Migrating explains them.
  • [ ] Stability policy: nothing public is removed in a minor release. A public item that a later major release removes is deprecated here first: add it to lua/codeart/deprecations.lua (bump NOTICE_VERSION so the one-time notice shows again), to the "Removed in" table of the stability page (English and Persian) and to the CHANGELOG. Tag a major release no sooner than six weeks after the minor release that announced its removals.

2. Update plugins

Do this in an isolated sandbox, never in your own config. Turn on the plugins that are off by default (for example lspsaga = false) in the sandbox's user/settings.lua, so their lazy-lock.json entries are updated rather than dropped.

W=/tmp/codeart-release
rm -rf "$W" && mkdir -p "$W"/xdg/{config,data,state,cache}
git clone -q --branch release-X.Y.Z . "$W/repo"
ln -sfn "$W/repo" "$W/xdg/config/nvim"
mkdir -p "$W/repo/user"
printf 'return { disable_plugins = { lspsaga = false } }\n' > "$W/repo/user/settings.lua"
export XDG_CONFIG_HOME=$W/xdg/config XDG_DATA_HOME=$W/xdg/data XDG_STATE_HOME=$W/xdg/state XDG_CACHE_HOME=$W/xdg/cache
nvim --headless -c "Lazy! restore" -c qa
nvim --headless -c "Lazy! update" -c qa
cp "$W/repo/lazy-lock.json" lazy-lock.json
  • [ ] Commit lazy-lock.json on its own (chore(deps): update plugins) and list the notable bumps in the commit body.
  • [ ] Add a "Plugin versions" line to the CHANGELOG.
  • [ ] If an update breaks something, pin that plugin back to its old commit in lazy-lock.json and say so in the commit.

3. Check

Run everything on the oldest supported Neovim (minimum_version_needed in lua/codeart/utils.lua), the latest stable and nightly:

  • [ ] stylua --check .
  • [ ] actionlint
  • [ ] zensical build --strict and zensical build --strict -f mkdocs-fa.yml (with docs/requirements.txt installed), then delete site/
  • [ ] ./scripts/sync-wiki.sh --build-only /tmp/wiki (every page is in the nav and has a wiki name)
  • [ ] nvim -l scripts/ci/settings_test.lua in an XDG sandbox (the same steps as .github/workflows/neovim-checks.yml)
  • [ ] nvim -l scripts/gen_keymaps.lua --check (the key map page matches the real maps)
  • [ ] nvim -l scripts/ci/pack_docs_check.lua (every language pack is in the English and Persian pack, run and test tables)
  • [ ] Start CodeArt in a sandbox, open a file, and try the pickers in both config.picker modes
  • [ ] If the startup time changed noticeably, re-measure it and update the numbers in the README

4. Date the CHANGELOG and push

  • [ ] Change ## [Unreleased] to ## [X.Y.Z] - YYYY-MM-DD, add the ### Highlights list at the top of the section, and commit it alone: docs(changelog): release X.Y.Z.
  • [ ] Fast-forward main: git push origin release-X.Y.Z:main. Never force-push main. If main moved, rebase onto it and run the checks again.
  • [ ] Wait for CI on main to pass: gh run list --branch main and gh run watch <id>.

5. Tag and release

git tag -a vX.Y.Z -m "CodeArt vX.Y.Z" <commit>
git push origin vX.Y.Z

Pushing the tag runs .github/workflows/release.yml, which checks that the tag is annotated and on main and publishes the GitHub release. The notes are built from the CHANGELOG by scripts/release_notes.py: the version's ### Highlights list (bold "Highlights" at the top), its other subsections, then a Full changelog compare link from the previous version. Preview them with python3 scripts/release_notes.py vX.Y.Z.

  • [ ] The CHANGELOG section starts with a short ### Highlights list (three to five bullets).
  • [ ] The Release run on the tag is green, and the release page shows the notes and is marked as latest (tags with a -, such as v3.0.0-rc.1, become prereleases).
  • [ ] If the run failed or the notes need a fix: fix the CHANGELOG on main, then run the Release workflow by hand with the tag (tick dry_run first to see the notes). It edits the existing release.
  • [ ] Fallback without Actions: python3 scripts/release_notes.py vX.Y.Z > notes.md and gh release create vX.Y.Z --verify-tag --title "CodeArt vX.Y.Z" --notes-file notes.md --latest.

6. Verify

  • [ ] CI (including the startup budget), Install, Docs and Sync wiki runs on main are green.
  • [ ] The docs site (https://artart222.github.io/CodeArt/) and the wiki show the new version's pages.
  • [ ] The Install workflow covers a fresh install on Linux, macOS and Windows; check by hand that :CodeArtUpdate from the previous release works.

7. Announce

  • [ ] Post on the Discord server.
  • [ ] For bigger releases, post on r/neovim (keep the draft outside the repo) and update the project on dotfyle.
  • [ ] Answer questions and new issues in the following days; a quick patch release is fine.