Repository navigation
fix(ci): stop publishing the vendored packages, and let canary idle - #5
Merged
Merged
Conversation
`changeset publish` publishes every workspace package whose version is not on the registry, and the submodules are workspace members. It tried to push lynx-screens@0.1.0 - Software Mansion's package, which we have no rights to - and the 404 took @react-navigation/lynx@0.1.0 down with it, so the first real release never happened. Adding them to `ignore` does not work: changesets rejects a tree where a released package depends on a skipped one, which @react-navigation/lynx does twice. Publishing through pnpm with a path filter never considers them in the first place, and it already skips versions that exist, so it is safe to run on every push. The cost is that git tags and GitHub releases are no longer created. The canary job failed separately: with the release PR merged there were no changesets left, and `changeset version --snapshot` exits 1 rather than doing nothing. It now checks first and idles.
|
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.
Both jobs failed on the push that merged the release PR (run), and
@react-navigation/lynx@0.1.0was never published as a result.version— we tried to publish someone else's packagechangeset publishpublishes every non-private workspace package whose version isn't on the registry. The submodules are workspace members, solynx-screens@0.1.0— Software Mansion's package, which we have no rights to — was a candidate. The 404 took the whole command down with it, and0.1.0of our own package never went out.@react-navigation/coreand@react-navigation/routersescaped only because their versions happen to already exist on npm. That is luck, not safety: we do hold publish rights in the@react-navigationscope, so a submodule bump to an unpublished version could have put upstream's source out under their name.Adding them to
ignoredoesn't work — changesets refuses the tree:So the publish moves out of
changeset publishand into a filteredpnpm publish, which only ever sees./packages/*. Verified it is safe to run unconditionally: on an already-published version it printsThere are no new packages that should be publishedand exits 0.Trade-off:
changesets/actionno longer runs a publish script, so it stops creating git tags and GitHub releases. Worth adding back separately —changeset taghas the sameignoreproblem, so it needs its own filter.canary— no changesets is not an errorchangeset version --snapshotexits 1 rather than doing nothing, so every push after a release PR merges would fail until someone adds a changeset. It now checkschangeset statusfirst and idles, the same guard lynx-stack uses. Tested both ways locally: emptyreleasesskips, a pending changeset resolves to@react-navigation/lynx@0.1.1.