Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/repo-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# analysis behavior; bump the pin as part of each release.
- name: Install xmd release binary
run: |
curl -fsSL https://executable.md/install.sh | XMD_VERSION=v0.3.0 sh
curl -fsSL https://executable.md/install.sh | XMD_VERSION=v0.3.1 sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"

- name: Run repo analysis
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# PR-review behavior; bump the pin as part of each release.
- name: Install xmd release binary
run: |
curl -fsSL https://executable.md/install.sh | XMD_VERSION=v0.3.0 sh
curl -fsSL https://executable.md/install.sh | XMD_VERSION=v0.3.1 sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"

- name: Run review
Expand Down
15 changes: 15 additions & 0 deletions scripts/bump-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,20 @@ await main(function* (args) {
}
}

// CI installs the released binary by pinned version; the pins move in
// lockstep with the manifests so reviews run the release being cut.
for (const workflow of [".github/workflows/review.yml", ".github/workflows/repo-analysis.yml"]) {
const url = new URL(workflow, repoRoot);
const text = yield* readTextFile(url);
const updated = text.replace(/XMD_VERSION=v\S+/, `XMD_VERSION=v${version}`);
if (updated === text) {
console.error(`no XMD_VERSION pin found in ${workflow}`);
yield* exit(1);
return;
}
yield* writeTextFile(url, updated);
console.log(`pinned ${workflow} -> v${version}`);
}

console.log(`done — commit, merge, then publish the draft release as v${version}`);
});
3 changes: 2 additions & 1 deletion specs/release-process-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ are the single source. The npm version derives from the tag, and both
workflows refuse a tag the manifests do not declare, so the two cannot
diverge.

To cut a release: run `deno task bump <version>` (stamps every manifest),
To cut a release: run `deno task bump <version>` (stamps every manifest and
the `XMD_VERSION` binary pins in the review/analysis workflows),
merge to `main`, then publish the draft release — its tag follows the
manifests (§3).

Expand Down
Loading