This repository was archived by the owner on May 27, 2025. It is now read-only.
chore(ci): fix snapshot versioning #189
Merged
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.
Changes
changeset versioncommand is executedRelated issues
Changesetsforce-published local version without consent #163Proof
When releasing snapshots, we expect each package to be versioned as
0.0.0-snap-{timestamp}, and things should work as expected if the.changesetfolder contains at least one changeset. If the condition has not been met, thechangeset versioncommand will be skipped, which causes the versions of the packages and the changelog file remain the same as before.An example of skipping (which causes the #163 issue):
To address the issue, an extra step has been added to the
snapshot.ymlworkflow to always add a temp changest before executing thechangeset versioncommand. This extra step ensures the versioning command will always updates the versions of the packages, instead of doing nothing.Here's an example action where the repo contains no changeset in the
.changesetfolder, even though the versioning command worked and the snapshot was released successfully. Therefore I believe the issue is considered resolved: https://github.com/ShookLyngs/test-changesets/actions/runs/9214982527/job/25352404438#step:9:9