-
-
Notifications
You must be signed in to change notification settings - Fork 51
ci: semantic releases #335
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
base: master
Are you sure you want to change the base?
Conversation
2ce5b21
to
69a3c8c
Compare
Thanks a lot for this @dhensby I have nom publishing access but I'd like to limit this only to the master branch so new releases are definitely reviewed beforehand by at least two of us. What do you think? |
By default the release process won't work unless it's in a list of the default branches ( |
Ok then we can leverage npm tags so everything on |
Yep - that's how it works "out of the box" 👍 |
@dhensby I just merged some dependabot dev-dependencies. Would these kinds of merges be ignored by your current PR? |
No; they are flagged as In regard to dependencies, our version constraints should be permissive enough that any upstream consumer can be responsible for upgrading any packages that have vulnerabilities or bugs; if we start to depend on new major versions of dependencies that form part of our outward facing APIs (I don't think they do), then we should probably manually update them with at least minor and maybe major change releases. |
69a3c8c
to
cac8b96
Compare
Summary
This change adds semantic releases to the release pipeline. Commits are automatically analysed when they are merged into
master
and depending on the commit message (fix
,feat
), a new release will be authored (tagged in git, pushed to GH releases and NPM); this includes updating the release version inpackage.json
and updating theCHANGELOG.MD
.Other added benefits are NPM attestation of releases, no human dependencies on releases, fixes are released as soon as they are merged.
Contributors will now have to ensure their commits conform to the conventional commits standard
Outstanding actions:
NPM_TOKEN
.GITHUB_TOKEN
.The GH token needs the following access:
Linked issue(s)
See discussion #310
Involved parts of the project
Releases / automation.
Added tests?
N/A
OAuth2 standard
N/A
Reproduction
N/A