After all pull requests for a release have been merged and all Travis CI builds are green, you may create a release as follows:
-
If you haven't already, switch to the master branch, ensure that you have no changes, and pull from origin.
$ git checkout master $ git status $ git pull <remote> master --rebase
-
Edit the
package.json
file changingversion
field to your new release version and runnpm i
. -
Commit your changes.
$ git commit -am "Release <version>"
-
Tag the version.
$ git tag v<version>
-
Push the commit and tag.
$ git push origin head --tags
-
Travis CI will publish new version to NPM.
-
Publish new release on GitHub with
release
package.$ npx release -P
-
Upload binaries
$ npm run pkg