Skip to content

Skip publishing when all package versions are published#619

Merged
JoviDeCroock merged 1 commit into
mainfrom
chore/skip-empty-release-publish
May 12, 2026
Merged

Skip publishing when all package versions are published#619
JoviDeCroock merged 1 commit into
mainfrom
chore/skip-empty-release-publish

Conversation

@JoviDeCroock
Copy link
Copy Markdown
Member

Summary

  • add a reusable .github/scripts/has-unpublished-packages.mjs check for publishable package versions
  • expose the check as a release job output
  • skip the gated publish job when Changesets has no release PR to create and all current versions are already on npm

Testing

  • GITHUB_OUTPUT=/tmp/publish-check-output node .github/scripts/has-unpublished-packages.mjs

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 12, 2026

⚠️ No Changeset found

Latest commit: b200a36

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@JoviDeCroock JoviDeCroock merged commit 0276eed into main May 12, 2026
1 check passed
@JoviDeCroock JoviDeCroock deleted the chore/skip-empty-release-publish branch May 12, 2026 18:03
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