Skip to content

ci(release): check the dictionary release only when a version is waiting to be published - #45

Merged
Saeris merged 1 commit into
mainfrom
ci/check-data-only-when-publishing
Nov 10, 2026
Merged

Saeris merged 1 commit into
mainfrom
ci/check-data-only-when-publishing

Conversation

@Saeris

@Saeris Saeris commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Fixes the red Release run on main after #42.

What failed. The Publish job failed at "Verify dictionary artifacts exist": the 'dictionary-v7' release does not exist. #42 touched scripts/build-data.ts, so the same push started "Dictionary Data", which was still building dictionary-v7. That push published nothing (package.json is still 0.3.0, already tagged), so the check had nothing to protect.

The fix. A step reads package.json and asks whether its <name>@<version> tag exists. That's Bumpy's own rule for what to publish for a package with a custom publishCommand. The data check now runs only when the tag is missing, that is, when the version PR has just merged. The version PR's own CI (release-gate-package in ci.yml) still runs the check unconditionally.

Checked.

  • Against this repo's tags: today's main (vscode-jisho@0.3.0, tagged) gives publish=false; vscode-jisho@0.4.0, not yet tagged, gives publish=true.
  • The workflow parses, and the check's if reads the new step's output.
  • vp exec node -p prints only the tag to stdout, so the capture is clean.

This doesn't need to wait for dictionary-v7: once that release exists, the next Release run passes either way.

…ing to be published

The Publish job checked that this schema's dictionary release exists on every push to main, although most pushes only update the version PR. A push that changes the schema starts this workflow and the data workflow together, so the schema-7 push (#42, 2026-11-10) failed here while dictionary-v7 was still building, and published nothing.

The check now runs only when package.json's version has no `<name>@<version>` tag yet, which is Bumpy's own rule for what to publish for a package with a custom publishCommand. Merging the version PR still meets the check before anything is published, and the version PR's own CI still runs it.
@github-actions

Copy link
Copy Markdown

bumpy-frog

This PR includes an empty bump file — no version bump is needed. ✅


This comment is maintained by bumpy.

@Saeris
Saeris merged commit 2a151f3 into main Nov 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant