Skip to content

chore(workflow): add step in the release workflow to check if all packages exist on npm - #8430

Open
myrtasakellariou wants to merge 1 commit into
mainfrom
6581-abort-release-workflow-when-new-package-does-not-yet-exist-on-npmjscom
Open

chore(workflow): add step in the release workflow to check if all packages exist on npm#8430
myrtasakellariou wants to merge 1 commit into
mainfrom
6581-abort-release-workflow-when-new-package-does-not-yet-exist-on-npmjscom

Conversation

@myrtasakellariou

@myrtasakellariou myrtasakellariou commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

📄 Description

Added a step in the release workflow (after dry-run) that creates the changesets.json and runs a script that checks if each included package already exists on npm. Tested locally with a fake changesets.json.


🔮 Design review

  • Design review done
  • No design review needed

🧪 Visual regression tests

  • Visual changes detected and approved (Check this box if VRT fails and changes are intentional)

📝 Checklist

  • ✅ My code follows the style guidelines of this project
  • 🛠️ I have performed a self-review of my own code
  • 📄 I have made corresponding changes to the documentation
  • ⚠️ My changes generate no new warnings or errors
  • 🧪 I have added tests that prove my fix is effective or that my feature works
  • ✔️ New and existing unit tests pass locally with my changes

@changeset-bot

changeset-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 070ceaa

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

@myrtasakellariou myrtasakellariou changed the title add workflow step to check if released packages exist on npm chore(workflow): add step in the release workflow to check if all packages exist on npm Sep 7, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2026

Copy link
Copy Markdown

@myrtasakellariou
myrtasakellariou marked this pull request as ready for review September 8, 2026 07:26
@myrtasakellariou
myrtasakellariou requested a review from a team as a code owner September 8, 2026 07:26
- name: Test publish step
run: pnpm -r publish --dry-run

- name: Check release packages exist on npm

@oliverschuerch oliverschuerch Sep 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Check release packages exist on npm
# Trusted publishing on the public npm registry requires the package
# to already exist before we release it with the "trusted publishing" method.
# New packages must first be published manually with a placeholder
# version (e.g. 0.0.0), then configured for trusted publishing on npmjs.com.
# This check fails fast if a queued package hasn't been bootstrapped yet.
- name: Verify packages to release exist on the public npm registry

Alternatively, you could add the information about the placeholder package with version 0.0.0 in the check-packages-on-npm.mjs script.
But I think it would be helpful to know, it can be a dummy package initially, just to configure trusted publishing, before the "real" package will be released through the trusted publishing mechanism by our release workflow.

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.

Abort release workflow, when new package does not yet exist on npmjs.com

3 participants