Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-plan hooks? #70

Open
gossi opened this issue Jun 17, 2024 · 0 comments
Open

release-plan hooks? #70

gossi opened this issue Jun 17, 2024 · 0 comments

Comments

@gossi
Copy link

gossi commented Jun 17, 2024

We are about to use release-plan on one of our first internal repositories, publishing to our internal registry. So far so good.

Now, for some packages they also need to be pushed to app stores. With the rule of "when package x version number is bumped, we also wanna push that one to the stores". After looking into what create-release-plan-setup offered and explanations from Preston, we can do this functionality in plan-release.yml.

To encode the rule of "when package x version number is bumped", is actually after release-plan prepare is run to check .release-plan.json and see if package x is part of solution object.

It would be more enjoyable to add a hook into package.json of bespoken package. Something as:

{
  "scripts": {
    "release-plan:postprepare": "..."
  }
}

plus Preston also mentioned some of the npm hooks that are also triggered (which are always more favorable to use, imho).

What about documentation for npm hooks that are triggered (by which command) plus custom hooks for release-plan to cover for situations where npm hooks aren't available?

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

No branches or pull requests

1 participant