Skip to content

Generate git tags for private packages #218

Closed

Description

@timleslie

For our project all of our packages are private, so running yarn changeset publish is essentially a no-op. However, I’d really like to get the git tags. Is there a way to tell changesets to generate the tags even for private packages?

Affected Packages

@changesets/cli

Problem

For our project all of our packages are private, so running yarn changeset publish is essentially a no-op. However, I’d really like to get the git tags. Is there a way to tell changesets to generate the tags even for private packages?

Proposed solution

Maybe something like the ability to do:

yarn changeset tag --private=true

Not too fussed on how it ends up being run.

Activity

  1. Noviny commented on Nov 5, 2019

    @Noviny
    Contributor

    Couple of additional thoughts

    I would like if publish just added new tags for private packages by default, no config needed.

    This means complicating the check in general - it's also more fault-likely. We need to check if the tag exists in git - if it doesn't add it. So a different check.

    I'm unsure for totally private repos. Running publish feels odd, but maybe it's fine still?

  2. Noviny commented on Nov 5, 2019

    @Noviny
    Contributor

    There's a slight tension around making publish extra-complicated. We probably want to refactor some of that code to make it easier for future code-maintainers, as this might tip us over into 'unintelligible garbage'

  3. timleslie commented on Nov 6, 2019

    @timleslie
    Author

    I would like if publish just added new tags for private packages by default, no config needed.

    As a user, I could get behind this 👍

  4. emberist commented on Oct 18, 2023

    @emberist

    Hey guys, If someone is still searching for a solution, here is documented something interesting

  5. bluwy commented on Jun 8, 2026

    @bluwy
    Member

    I believe the privatePackages.tag option address this

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