feat: add release workflow for multi-target theme distribution#1
Merged
Conversation
Add a complete release pipeline mirroring the dev→main PR pattern from eval-magic and slow-powers: - ci.yml: lint, typecheck, tests, generator sync check - release-pr.yml: manual trigger bumps versions and opens dev→main PR - release.yml: on merge to main, tags release, uploads curl-install files (starship.toml, wezterm *.toml), builds VSIX, and fans out publish jobs to VS Code Marketplace, OpenVSX, Zed, and synthpunk.nvim — each gated on a repo variable so channels without secrets are skipped Supporting tooling: - scripts/bump-version.ts bumps JSON + TOML manifests in lockstep - tests/lockstep.test.ts enforces version match across all manifests - bun run build now formats generated JSON via biome format --write - Root package.json gets name, version, license fields - Pre-release cleanup: fix stale regen commands in theme READMEs, fix Zed extension id/repo URL, add .vscodeignore, add root LICENSE/README
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a complete release pipeline for distributing Synthpunk themes across all five targets (VS Code, Zed, Neovim, WezTerm, Starship), mirroring the
dev → mainPR pattern from eval-magic and slow-powers.What's included
Workflows (
.github/workflows/)ci.yml— PR gate: biome check + tsc, tests, generator sync check (bun run buildthengit diff --exit-codeon generated files)release-pr.yml— Manual trigger with version input: validates format, bumps all manifests viascripts/bump-version.ts, commits todev, opensdev → mainPR with release-notes placeholderrelease.yml— On merge tomain: tagsvX.Y.Z, creates GitHub Release, builds themes, uploads curl-install files (starship.toml + 4 wezterm TOMLs), builds VSIX, fans out publish jobs (VS Code Marketplace, OpenVSX, Zed, synthpunk.nvim) — each gated on a repo variable so channels without configured secrets are skippedVersion tooling (
scripts/)manifest-files.ts— single source of truth for version-locked manifestsbump-version.ts— bumps JSON (parse + stringify + biome format) and TOML (regex replace) manifests; tested with 4 unit teststests/lockstep.test.ts— asserts all manifests matchpackage.jsonversion (3 tests)Pre-release cleanup
package.json: namesynthpunk, version0.1.0, licenseMIT, build script with biome format stepbiome.json:json.formatter.enabled: truefor consistent JSON formattingLICENSE(MIT),README.md(root, with per-target curl-install commands),RELEASE.md(manual publishing catalogue),AGENTS.mdthemes/vscode/.vscodeignore,themes/vscode/package.jsonrepository fieldthemes/zed/extension.toml: fix id (synthpunk), name, repo URLcd generator && bun run src/index.ts→bun run build)themes/neovim/README.md: update forsynthpunk.nvimdedicated repoManual steps before first release
devbranch frommain, set as defaultslowdini/synthpunk.nvimrepoRELEASE_PR_TOKEN,VS_MARKETPLACE_TOKEN,OVSX_TOKEN,ZED_PUBLISH_TOKEN,SYNTHPUNK_NVIM_DEPLOY_KEYPUBLISH_VSCODE=true,PUBLISH_OPENVSX=true,PUBLISH_ZED=true,PUBLISH_NVIM=truesynthpunkTest plan
bun run checkpasses (biome + tsc)bun test— 91 pass, 0 fail (84 original + 4 bump-version + 3 lockstep)bun run build+ generator sync check — generated files match committedbun scripts/bump-version.ts 0.2.0— bumps all 3 manifests correctly (verified, then reverted)0.1.0, verify end-to-end