Repository navigation
ci(release): check the dictionary release only when a version is waiting to be published - #45
Merged
Merged
Conversation
…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.
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.

Fixes the red Release run on
mainafter #42.What failed. The Publish job failed at "Verify dictionary artifacts exist":
the 'dictionary-v7' release does not exist. #42 touchedscripts/build-data.ts, so the same push started "Dictionary Data", which was still buildingdictionary-v7. That push published nothing (package.jsonis still 0.3.0, already tagged), so the check had nothing to protect.The fix. A step reads
package.jsonand asks whether its<name>@<version>tag exists. That's Bumpy's own rule for what to publish for a package with a custompublishCommand. 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-packageinci.yml) still runs the check unconditionally.Checked.
main(vscode-jisho@0.3.0, tagged) givespublish=false;vscode-jisho@0.4.0, not yet tagged, givespublish=true.ifreads the new step's output.vp exec node -pprints 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.