Skip to content

Commit af47777

Browse files
committed
Add /make-release skill, trim release checklist for readability
1 parent 8013286 commit af47777

3 files changed

Lines changed: 104 additions & 38 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: make-release
3+
description: Drive a Quarto release end-to-end from the dev-docs release checklists. Invoke explicitly with /make-release — do not auto-invoke from ambient conversation, a release cut is high-stakes. Detects whether this is the first stable release of a new major.minor cycle or a patch release on an existing stable branch, then follows the matching checklist, verifying real git/gh state at each step and pausing for explicit human confirmation before every irreversible or externally-visible action.
4+
---
5+
6+
# Make Release
7+
8+
Command-only helper that drives an existing release checklist. **Do not auto-invoke** — only run when the user explicitly asks (e.g. `/make-release`). This skill does not restate the release steps; the checklists below are the source of truth. Your job is to read the right one and drive it with real-state verification and confirmation gates.
9+
10+
## 1. Detect which checklist applies (verify, don't trust self-report)
11+
12+
Check real repo state, not the user's description:
13+
14+
```bash
15+
git ls-remote --heads origin v1.x # substitute the target major.minor, e.g. v1.10
16+
```
17+
18+
- Branch **absent** → first stable release of a new cycle → drive
19+
`dev-docs/checklist-make-a-new-quarto-release.md`
20+
- Branch **present** → patch release on an existing stable branch → drive
21+
`dev-docs/checklist-make-a-new-stable-quarto-release.md`
22+
23+
If it's still ambiguous (e.g. the user's target version is unclear), ask before proceeding.
24+
25+
## 2. Drive the checklist top to bottom, verifying real state
26+
27+
Read the matching checklist and work it in order. At each step, confirm the real state with `git`/`gh` rather than trusting the checklist text or the user's word that something happened — e.g. that a branch/tag exists, a workflow run actually succeeded (`gh run view <id>`), a release's flags are set, a version field is what it should be. A step isn't done until real state confirms it.
28+
29+
## 3. Hard-confirm gates (stop and get explicit human OK before running)
30+
31+
Never fire these on your own — state exactly what you're about to do, to which repo, and wait for an explicit go:
32+
33+
- Pushing the new stable branch (`git push origin v1.x`)
34+
- Pushing version-bump / release-checklist commits to `main`
35+
- Any `workflow_dispatch` carrying a publish flag (e.g. `publish-release=true`, chocolatey publish checkbox, Cloudsmith `dry-run=false`)
36+
- Editing a live GitHub release's flags (pre-release / "Set as latest release")
37+
- Pushing the release tag
38+
- Production package-registry publishes: pypi (`Production Release`), chocolatey, Cloudsmith manual publish
39+
40+
Dry-runs and read-only verification don't need a gate — run them freely.
41+
42+
## 4. Cross-repo flow
43+
44+
Three repos are involved, with real ordering dependencies:
45+
46+
- `quarto-dev/quarto-cli` — the release build and tag
47+
- `quarto-dev/quarto-web` — quarto.org site, downloads, highlights, announcement
48+
- `quarto-dev/quarto-cli-pypi` — pypi publish
49+
50+
Ordering matters: e.g. quarto-cli's release build must fully publish before quarto-web's `update-downloads.yml` will pick it up, and chocolatey waits on the quarto.org download page updating. State which repo each step targets. Use `gh --repo <owner>/<name> ...` so verification works even without a local clone of every repo.
51+
52+
**No local quarto-web clone:** if a step needs local content edits to quarto-web (e.g. the `docs/prerelease/<version>/` highlights `.qmd` files, or `_quarto.yml` edits) and no local quarto-web clone is present, stop and ask the user for the clone path or to make the edit themselves. Do not attempt the edit through the GitHub API and do not silently skip the step.
53+
54+
**Release announcement:** the announcement post is published on the Posit Open Source site (opensource.posit.co), not via a quarto-web blog PR (blog migrated June 2026). Point the user there; do not name any internal publishing tool.
55+
56+
## 5. When the checklist doesn't match reality
57+
58+
If a step's described state doesn't match what you find (stale path, wrong ordering, already done, renamed workflow), surface the discrepancy and get a human decision. Don't silently work around it, and don't edit the checklist mid-release — suggest a follow-up doc-fix PR instead.
59+
60+
## 6. Non-blocking gaps found along the way
61+
62+
If you spot a non-blocking gap during the release (e.g. a CI automation that only covers one branch, a doc-archival gap), don't try to fix it inline. Tell the user to track it in whatever task tracker they/their project use, and continue the release.
Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
1+
> A Claude Code skill can drive this checklist interactively: run `/make-release` (see `.claude/commands/make-release/`). It reads this file, verifies real `git`/`gh` state at each step, and pauses for confirmation before irreversible actions. This checklist stays the source of truth — the skill just follows it.
2+
13
- [ ] ensure your git repo is up to date with `main`
24
- [ ] ensure CI is green for `main`
3-
- [ ] ensure `main` is coherent with last prerelease build (most of the case it last prerelease tag should be at `main`)
4-
- [ ] Verify `changelog-1.x.md` is a good shape.
5+
- [ ] ensure `main` is coherent with the last prerelease build (usually the last prerelease tag is at `main`)
6+
- [ ] Verify `changelog-1.x.md` is in good shape.
57
- [ ] create a branch `v1.x`, where x is the version being released
68
- `git checkout -b v1.4`
79
- `git push origin v1.4`
8-
- [ ] on this new branch, update `CITATION.cff` `version` (quote it, e.g. `"1.4"` — unquoted `1.10`-style values parse as a YAML float and drop the trailing zero) and `date-released` to today, commit, and push again. This value is constant for the branch's whole patch-release life, so it's only set once, here, at branch-cut. Later, when doing the same edit on `main` (see the `CITATION.cff` step below), cherry-pick this commit instead of re-deriving it.
10+
- [ ] on this new branch, set `CITATION.cff` `version` (quote it — e.g. `"1.4"`; unquoted `1.10`-style values parse as a YAML float and lose the trailing zero) and `date-released` (today), then commit and push. Set once per branch here; the `CITATION.cff` step on `main` below is a cherry-pick of this commit, not a re-edit.
911
- [ ] mark the current release as the new release in the `main` branch
1012
- [ ] switch your repo back to `main`: `git checkout main`
11-
- [ ] edit QUARTO_VERSION line in `/configuration` to be the new version (e.g. `1.5`)
13+
- [ ] edit the QUARTO_VERSION line in `/configuration` to the new version (e.g. `1.5`)
1214
- [ ] commit with message '[release checklist] QUARTO_VERSION -> x.x'
1315
- [ ] push the changes to the `main` branch
1416
- [ ] kick off a v1.5 build in GHA: https://github.com/quarto-dev/quarto-cli/actions/workflows/create-release.yml
1517
Command: `gh workflow run create-release.yml --repo quarto-dev/quarto-cli --ref main -f publish-release=true -f pre-release=true`
16-
- [ ] ensure the build completes successfully (e.g `gh run view <run id>`)
18+
- [ ] ensure the build completes successfully (e.g. `gh run view <run id>`)
1719
- [ ] mark v1.4 release as stable
1820
- [ ] go to https://github.com/quarto-dev/quarto-cli/releases
19-
- [ ] find the latest v1.4 release and edit, (eg https://github.com/quarto-dev/quarto-cli/releases/edit/v1.4.549)
20-
- [ ] at the bottom of the page, there will be two checkboxes, "Set as pre-release" and "Set as latest release":
21-
- [ ] "Set as pre-release" should be unchecked, and
22-
- [ ] "Set as latest release" should be checked.
23-
- [ ] once the v1.5 build completes, edit the quarto.org website configuration on https://github.com/quarto-dev/quarto-web to reflect the new version
24-
- this means flipping the profile group configuration in `_quarto.yml` from `[rc,prerelease]` to `[prerelease,rc]`
25-
- only needed if this cycle went through a release-candidate (RC) phase — skip if you went straight from prerelease to stable with no RC, since the flip-back to `[rc,prerelease]` (which normally happens when the RC phase starts) never happened either
21+
- [ ] find the latest v1.4 release and edit it (e.g. https://github.com/quarto-dev/quarto-cli/releases/edit/v1.4.549)
22+
- [ ] at the bottom of the page, set the two checkboxes:
23+
- [ ] "Set as pre-release" unchecked
24+
- [ ] "Set as latest release" checked
25+
- [ ] once the v1.5 build completes, edit the quarto.org website config on https://github.com/quarto-dev/quarto-web for the new version
26+
- flip the profile group in `_quarto.yml` from `[rc,prerelease]` to `[prerelease,rc]`
27+
- only if this cycle had a release-candidate (RC) phase — skip if you went straight from prerelease to stable, since the flip-back to `[rc,prerelease]` never happened either
2628
- [ ] push the changes to the `main` branch
2729
- [ ] quarto-dev/quarto-web changes
28-
- wait for the downloads file to be automatically updated by the GitHub Action on https://github.com/quarto-dev/quarto-web
29-
- [ ] wait for https://github.com/quarto-dev/quarto-web/actions/workflows/update-downloads.yml to run (it runs every 15 minutes, or you can manually trigger it)
30-
- This workflow run rendered the website: https://github.com/quarto-dev/quarto-web/actions/runs/12016407762
31-
- This workflow run did not: https://github.com/quarto-dev/quarto-web/actions/runs/12016128695
30+
- wait for the downloads file to be updated automatically by the GitHub Action on https://github.com/quarto-dev/quarto-web
31+
- [ ] wait for https://github.com/quarto-dev/quarto-web/actions/workflows/update-downloads.yml to run (every 15 minutes, or trigger it manually)
32+
- This run rendered the website: https://github.com/quarto-dev/quarto-web/actions/runs/12016407762
33+
- This run did not: https://github.com/quarto-dev/quarto-web/actions/runs/12016128695
3234
- [ ] Ensure the run just triggered looks like the _former_
3335
- [ ] Ensure the header in https://quarto.org has the new version number in its 'generator' meta tag
3436
- [ ] Ensure the download links on https://quarto.org/docs/get-started/ and https://quarto.org/docs/download/ point to the stable and prerelease versions respectively
@@ -37,57 +39,57 @@
3739
- [ ] create `docs/prerelease/1.5/{_highlights, index}.qmd` files based on the ones from the previous release
3840
- [ ] change `docs/prerelease/_highlights-prerelease.qmd` so its include points to the new version-specific `_highlights.qmd` file (here, 1.5)
3941
- [ ] change `docs/prerelease/_highlights-release.qmd` so its include points to the new version-specific `_highlights.qmd` file (here, 1.4)
40-
- [ ] run `quarto run _tools/release-notes.R` to generate the release notes and bump `version` in `_quarto.yml` (to released version) and `_quarto-prerelease-docs.yml` (to next prerelease) — this also adds the stable version to `/docs/download/_download-older.yml` automatically, no separate manual edit needed
42+
- [ ] run `quarto run _tools/release-notes.R` — generates the release notes and bumps `version` in `_quarto.yml` (released version) and `_quarto-prerelease-docs.yml` (next prerelease); it also adds the stable version to `/docs/download/_download-older.yml` automatically (no separate manual edit)
4143
- [ ] push the changes to `prerelease` branch, ensure they build correctly
4244
- [ ] Merge the `prerelease` branch into `main`, push to `main`
4345
- [ ] before merging, run `git log --cherry-pick --right-only prerelease...main` to catch drifted commits (direct pushes and failed auto-backport PRs both silently miss `prerelease`); cherry-pick genuine fixes, ignore intentional cross-version divergence
44-
- [ ] a direct push (default) skips `port-to-prerelease.yml`. Merging via PR instead lets CI verify the build first — label it `no-sync-prerelease` so the backport action doesn't try to cherry-pick prerelease's history back onto itself
46+
- [ ] a direct push (default) skips `port-to-prerelease.yml`; merging via PR instead lets CI verify the build first — label the PR `no-sync-prerelease` so the backport action doesn't cherry-pick prerelease's history back onto itself
4547
- [ ] on a conflict in `docs/cli/cli-info.json`, neither merge side is correct — regenerate it from a quarto build at the stable tag (the only automation, `update-prerelease-reference.yml`, produces the prerelease/dev version, not stable)
4648
- [ ] watch for freeze conflicts — see quarto-web `.claude/rules/quarto-web-workflow.md`
4749
- [ ] ensure the build completes successfully
4850
- [ ] verify `_quarto.yml` `version` on `main` reflects the released version (e.g. `'1.4'`) — needed for `prerelease` shortcodes to resolve blog links and pre-release callouts
4951
- [ ] Merge `main` into `prerelease`, push to `prerelease`
5052
- [ ] ensure the build completes successfully
51-
- [ ] Create new tag on `main` with stable release version number (here, `v1.4`) to mark when the new main site version went live
53+
- [ ] Create a new tag on `main` with the stable release version (here, `v1.4`) to mark when the new main site version went live
5254
- [ ] `git tag -a v1.4 -m "v1.4"`
5355
- [ ] `git push origin v1.4`
5456
- [ ] Verify version numbers were updated by `_tools/release-notes.R`
5557
- [ ] `_quarto.yml` `version` should be the released version (e.g. `'1.4'`)
5658
- [ ] `_quarto-prerelease-docs.yml` `version` should be the next prerelease (e.g. `'1.5'`)
57-
- [ ] publish the release announcement post — as of the June 2026 blog migration, this is no longer a quarto-web PR: the post goes on the Posit Open Source site (opensource.posit.co), not `quarto-web/docs/blog/posts` (that directory now just redirects there)
59+
- [ ] publish the release announcement post — since the June 2026 blog migration this is no longer a quarto-web PR: the post goes on the Posit Open Source site (opensource.posit.co), not `quarto-web/docs/blog/posts` (that directory now just redirects there)
5860

59-
- [ ] Update https://github.com/quarto-dev/quarto-cli/blob/main/CITATION.cff (cherry-pick the commit already made on the `v1.x` branch at branch-cut time, above)
60-
- [ ] Packaging and package managers, etc
61-
- [ ] chocolatey (Only once quarto.org download page is updated with the new release)
61+
- [ ] Update https://github.com/quarto-dev/quarto-cli/blob/main/CITATION.cff (cherry-pick the commit made on the `v1.x` branch at branch-cut, above)
62+
- [ ] Packaging and package managers, etc.
63+
- [ ] chocolatey (only once the quarto.org download page shows the new release)
6264
- https://github.com/quarto-dev/quarto-release-bundles/actions/workflows/build-and-publish-choco.yaml
63-
- [ ] In "Build Choco package & Publish" workflow page, click "Run Workflow"
65+
- [ ] In the "Build Choco package & Publish" workflow page, click "Run Workflow"
6466
- Check the "Whether to publish or not the package on chocolatey" checkbox
6567
- Wait for @cderv to receive email confirmation, no action needed
6668
- [ ] pypi
6769
- Go to the [quarto-cli-pypi repo](https://github.com/quarto-dev/quarto-cli-pypi)
68-
- [ ] Update `version.txt` to be the version you'd like to publish and commit
69-
- Go to actions
70+
- [ ] Update `version.txt` to the version you'd like to publish and commit
71+
- Go to Actions
7072
- Select 'Publish Quarto PyPi'
7173
- [ ] Click "Run Workflow"
72-
- **Publishing Test**: You may elect to publish to test.pypi first by _unchecking_ the `Production Release` option
73-
- Once complete, trest using
74+
- **Publishing Test**: you may publish to test.pypi first by _unchecking_ the `Production Release` option
75+
- Once complete, test using
7476
```bash
7577
python3 -m pip install --index-url https://test.pypi.org/ --extra-index-url https://pypi.org/ quarto-cli
7678
```
77-
- You may have to run this command twice as the first time may report the package not found and cause cache invalidation. The next try should succeed.
79+
- You may have to run this command twice — the first try may report the package not found and cause cache invalidation; the next try should succeed.
7880
- Published to: <https://test.pypi.org/project/quarto-cli/>
79-
- **Publishing Production**: You may elect to publish to production pypyi by checking the `Production Release` option
81+
- **Publishing Production**: publish to production pypi by checking the `Production Release` option
8082
- Published to: <https://pypi.org/project/quarto-cli/>
8183
- Take a sip of tea ☕, bask in the glory of automation.
82-
- Others installers
83-
- [ ] Cloudsmith: **not automatic here** — `create-release.yml` only publishes when run with `pre-release=false`, but this checklist cuts the first stable release by relabeling an existing prerelease build, so that never happens. Manually trigger [publish-cloudsmith.yml](https://github.com/quarto-dev/quarto-cli/actions/workflows/publish-cloudsmith.yml) with `version: v1.x.y` — dry-run first, then for real. See [cloudsmith-publishing.md](cloudsmith-publishing.md#first-stable-release-of-a-cycle). Not needed for later patch releases on the stable branch (those use `checklist-make-a-new-stable-quarto-release.md`, which dispatches with `pre-release=false` and does auto-publish).
84+
- Other installers
85+
- [ ] Cloudsmith: **not auto-published for a first stable release** — you must trigger it manually (a first stable is cut by relabeling an existing prerelease build, whose auto-publish job was skipped). Why + full context: [cloudsmith-publishing.md](cloudsmith-publishing.md#first-stable-release-of-a-cycle). Later patch releases on the stable branch auto-publish, so this is not needed there.
8486
- [ ] Dry run: `gh workflow run publish-cloudsmith.yml --repo quarto-dev/quarto-cli -f version=v1.x.y -f dry-run=true`
8587
- [ ] Verify it succeeded: `gh run list --repo quarto-dev/quarto-cli --workflow publish-cloudsmith.yml --limit 1 --json databaseId,status,conclusion`
8688
- [ ] Production: `gh workflow run publish-cloudsmith.yml --repo quarto-dev/quarto-cli -f version=v1.x.y -f dry-run=false`
87-
- conda-forge: An automated PR will be created to update the package version in the feedstock <github.com/conda-forge/quarto-feedstock>
88-
- This is community maintained, so no action is needed from us - except maybe helping if there are issues with the PR. We are assigned as reviewers to the PR.
89-
- Winget: An automated PR will be created by a winget bot in <github.com/microsoft/winget-pkgs/>.
90-
- This is community maintained, so no action is needed from us.
91-
- Scoop: This will be updated automatically in the manifests repo. No action is needed from us. Maintained as personal project by @cderv.
92-
- Homebrew: This is automated through an homebrew bot to update the cask <https://github.com/Homebrew/homebrew-cask>
89+
- conda-forge: an automated PR updates the package version in the feedstock <github.com/conda-forge/quarto-feedstock>
90+
- Community maintained, so no action needed from us — except maybe helping if the PR has issues. We are assigned as reviewers.
91+
- Winget: an automated PR is created by a winget bot in <github.com/microsoft/winget-pkgs/>.
92+
- Community maintained, so no action needed from us.
93+
- Scoop: updated automatically in the manifests repo. No action needed from us. Maintained as a personal project by @cderv.
94+
- Homebrew: automated through a homebrew bot to update the cask <https://github.com/Homebrew/homebrew-cask>
9395
- Manifest: <https://github.com/Homebrew/homebrew-cask/blob/master/Casks/q/quarto.rb>

‎dev-docs/checklist-make-a-new-stable-quarto-release.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
> A Claude Code skill can drive this checklist interactively: run `/make-release` (see `.claude/commands/make-release/`). It reads this file, verifies real `git`/`gh` state at each step, and pauses for confirmation before irreversible actions. This checklist stays the source of truth — the skill just follows it.
2+
13
- [ ] ensure tests pass on stable branch
24
- Actions -> Parallel Smokes Tests -> Run Workflow ->
35
- Select the current stable branch in the "Use workflow from... v1.x" dropdown

0 commit comments

Comments
 (0)