Every time a new tag for the latest release is pushed to Github, the continuous integration builds in Travis-CI and AppVeyor will generate the binaries for each platform and architecture. We use prebuild to publish these binaries on Github.
This can be checked in the .travis.yml file and appveyor.yml file. Within these files, if a git tag is detected a binary will be built and published for each version on each platform.
- Bump up npm version in
package.json
- Run
npm run changelog
and modifyCHANGELOG.md
if needed - Commit everything then generate new tags based on package.json version number with
git tag v6.0.0 -a
and include the change log in the tag's annotation. (betagit tag v6.0.0-beta3 -a
) - Push tags to Github with
git push --tags
- Wait for the CI to publish all the binaries. Remove the content of the Github release message so the tag's text shows.
rm -rf package-lock.json node_modules build && npm install
- When the entire matrix succeeds and all binaries exist run
npm publish
ornpm publish --tag beta
. - Kick off the build matrix for either the master or beta branch on serialport-test-pilot. It will install serialport from npm on a wide range of systems.
- Let everyone know 🎉