- Feature branches to
dev
: squash commit - Continuous Release from
dev
tomain
: standard merge commit - Hotfixes: branch off
main
, merge PR intomain
via squash commit, then merge backmain
todev
via standard merge commit.
As this is only a small project, we haven't automated publishing to the NPM registry yet and instead rely on the following manual workflow.
- Make sure the tests pass locally:
npm test
✔ - Make another commit on the
dev
branch bumping the npm version in thepackage.json
. For that, use:
npm run bump-version -- [<newversion> | major | minor | patch]
- ⚠ Copy the version specifier from
package.json
into theindex.js
meta information object. - Once the
dev
branch is ready, open a PR (Pull request) called "Continuous Release <version.number>" and give it the "release" label. Merge this PR intomain
. - Create a new release via the GitHub UI and assign a new tag alongside that.
- Fetch the tag locally (
git fetch
) and publish to npm vianpm run publish-final
. You probably have to login to npm first (npm login
). - Enjoy ✌ Check that the release is available here on npm.