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

Refactor versioning process #282

Merged
merged 7 commits into from
Oct 24, 2021
Merged

Refactor versioning process #282

merged 7 commits into from
Oct 24, 2021

Conversation

sahariko
Copy link
Contributor

@sahariko sahariko commented Oct 19, 2021

Create a new release process for this repository - instead of automatically releasing a new patch version on each commit to master, we'll now run a script that'll handle this process:

  1. Generate a changelog section of all new changes since the last version released.
  2. Determine what version bump we need to make (minor, patch, etc.).
  3. Bump the version in package.json.
  4. Update CHANGELOG.md with the new version information.
  5. Commit and push changes.
  6. Run npm publish only if package.json's version is different than the latest published one.

This release script relies on certain labels being assigned to PRs, which is checked in a different workflow (ensure-pr-labels):

  1. Ensure one of the labels we support is present on the PR.
  • If there aren't, post a comment on the PR explaining that one of these labels need to be applied and fail CI.
  • If there are, delete the previous comment (if it exists, of course).

The comment looks like this:

image

@sahariko sahariko merged commit 525b743 into master Oct 24, 2021
@sahariko sahariko deleted the refactor-versioning-process branch October 24, 2021 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants