-
Notifications
You must be signed in to change notification settings - Fork 20
Deploying a new Package Version
Graham Hency edited this page Jan 7, 2022
·
2 revisions
When you're ready to cut a version version of Goponents do the following:
- Create a branch off
dev
that increments theversion
number inprojects/go-lib/package.json
using semver. - Create a pull request into
dev
- Once that pull request is merged, create another pull request that merges
dev
intomain
. - There is a GitHub Action that runs a check on this pull request ensuring the version mentioned above is different that what exists in
main
. This is important because we cannot publish the same version tonpm
, this is a required check and must pass. - Once all checks pass and the PR is approved, you may merge.
- On merge, 3 things happen:
- A Github Action is triggered that creates a new Release in the Goponents repo with auto-generated release notes detailing what changed since the last release.
- The
go-lib
project is compiled into a production-ready library and then published to npm (note that this uses an token generated on npmjs.com and stored in the Secrets section of the GitHub Goponents repo settings) - The
go-style-guide
project is picked up by Netlify, compiled into a production app, and deployed to http://tangoe.design
- For good measure, it would be nice to announce this in the Tangoe UI Community Teams channel so that all products are aware of the new version.
As a side note, some of the GitHub Actions for CI/CD cannot be run against forked pull requests for security reasons