Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 1.56 KB

deployment.md

File metadata and controls

54 lines (31 loc) · 1.56 KB

Deployment

This package is deployed with the prebuilt binaries using prebuildify.

Preparation

  1. 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.

  2. npm install -g prebuildify

If running prebuilds on linux on Windows, see here to install the build tools:

Deployment

1. Bump version number

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:

2. Build for Linux

prebuildify --napi

3. Build for Windows and Deploy

Going back into Windows, I run:

npm run build-and-deploy

This makes the prebuilds for Windows, runs some tests, and publishes to npm.

4. Commit and Tag

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

5. GitHub Release

Then go to github and and create a new release off this tag, with the same naming format vX.X.X:

https://github.com/coder-mike/microvium/releases