Skip to content

Make failed publishing in a monorepo less painful #579

Closed

Description

@lukasIO

Hi,

with the recent changes on npm around trusted publishing, we're regularly running into issues that aren't obvious to fix when managing releases with this action.

The problem boils down to the fact that we add new provider plugins quite regularly to our monorepo but trusted publishing for npm packages can only be configured for already existing packages, so the normal publishing workflow in CI will fail.

The current state of this action will publish all packages that it can to npm. When it encounters one that cannot be published (in our case it would be the first publication of a new plugin) the action errors out. This means that we don't get any git tags and/or releases for any of the already published packages.

I would love to see one of two things:

a) create git tags and releases for all packages that were successfully published to npm as part of the run
b) determine ahead of time whether publishing would succeed for all packages and error out early before publishing anything to npm in case any of the packages would fail

As I think option b) has a lot more corner cases to cover, I'd personally welcome option a) very much.

Activity

  1. added a commit that references this issue on Feb 28, 2026
    1a49259
  2. bluwy commented on Jun 23, 2026

    @bluwy
    Member

    a) is addressed in #535. b) is tricky because it's not possible to determine perfectly unless it's a dry run, which we need upstream support first.

  3. Andarist commented on Jun 23, 2026

    @Andarist
    Member

    b) got also kinda covered by changesets/changesets#2100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions