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

Automate the release process #42

Open
romainmenke opened this issue Jun 26, 2024 · 0 comments
Open

Automate the release process #42

romainmenke opened this issue Jun 26, 2024 · 0 comments

Comments

@romainmenke
Copy link
Member

An automated setup removes some friction and makes it easier to gain some momentum.
Currently specific people need to pull the project and run the release locally.

Ideally releases happen any time tests are green and specific other conditions are true. (like an increment in the package version)


I am not really a fan of most automatic release workflows.

Typical workflow:

  1. make feature changes
  2. increment version in package.json
  3. CI tests run
  4. review those changes (optionally requiring approval)
  5. merge to main

independent from the above:

  1. make a GitHub release
  2. this triggers the workflow
  3. workflow pushes to NPM

Flaws with that (imho):

  • GitHub release has enforced relation to the version in package.json
  • there is no review/approval process for creating a release on GitHub

My preferred setup:

  1. make feature changes
  2. CI tests run
  3. review those changes (optionally requiring approval)
  4. merge to main
  5. optionally go back to 1

independent from the above:

  1. increment version in package.json
  2. review those changes (optionally requiring approval)
  3. merge to main
  4. the change to package.json triggers the workflow
  5. workflow creates a GitHub release and pushes to NPM

thoughts?

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