Skip to content

Changesets does not run pre and post scripts. #982

Description

@lluiscab

Problem

I'm currently using changesets on multiple monorepos that hold a react-native application and a nodejs api. Currently, when running yarn changeset version, if there's a pending changeset on my app package, it's version is updated accordingly. That works as it should, the problem comes when for example, I want to update the apps's android and ios versions and build code identifiers. Previously I was using react-native-version executed through a postversion script. Unfortunately, changesets doesn't execute any post or pre scripts.

Proposed solution

Executing user defined pre and post (version, publish) scripts on updated packages would solve this problem.

Activity

  1. hansonfang commented on Oct 26, 2022

    @hansonfang

    same issue

  2. brense commented on Apr 15, 2025

    @brense

    We would also really like it if changeset version would call npm run preversion and npm run postversion under the hood

  3. Andarist commented on Apr 15, 2025

    @Andarist
    Member

    I think this makes sense - we should support this, with an option to opt-out of this behavior. PRs are welcome

  4. added theissue type on Aug 11, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions