An example of auto-deploying prebuilts to Github Releases
-
Add
.travis.yml
andappveyor.yml
with deploy to Github Releases -
Make a tagged release, and wait for CI to complete
-
Download archive files and extract to
prebuilds
. It should look something like the following:prebuilds/ ├── darwin-x64 │ └── ... ├── linux-x64 │ └── ... ├── win32-ia32 │ └── ... └── win32-x64 └── ...
-
Optional: Run
npm pack
and inspect the archive to make sure the correct files are included. You can do so withtar -tvf ARCHIVE_NAME.tgz
-
Run
npm publish
to release your new module with prebuilts!