This package is deployed with the prebuilt binaries using prebuildify.
-
Make sure that node-gyp is installed globally (
npm install -g node-gyp
), since, as of this writing,prebuildify
doesn't seem to use the locally installed instance. -
npm install -g prebuildify
If running prebuilds on linux on Windows, see here to install the build tools:
First, bump the version number in package.json. I don't commit to git yet because the following steps could find errors that you want to clean up first.
I'm deploying from a Windows machine, but I want to pre-build the linux binary files as well so I open up an ubuntu shell and run the following shell command to generate the linux release binaries:
prebuildify --napi
Going back into Windows, I run:
npm run build-and-deploy
This makes the prebuilds for Windows, runs some tests, and publishes to npm.
Then I commit to git, and create git tag on the commit with the following command:
git commit -am "Bump version to vX.X.X"
git tag -a "vX.X.X" -m "vX.X.X"
git push --tags origin
Then go to github and and create a new release off this tag, with the same naming format vX.X.X
: