Skip to content

emilbayes/prebuilt-example

Repository files navigation

prebuilt-example

Build Status Build status

An example of auto-deploying prebuilts to Github Releases

How-to (more extensive guide to follow)

  • Add .travis.yml and appveyor.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 with tar -tvf ARCHIVE_NAME.tgz

  • Run npm publish to release your new module with prebuilts!

Security considerations

License

ISC