1.0.9 • Published 3 years ago

@mathisloge/node-pre-gyp-github v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

node-pre-gyp-github

Publishes release assets to already existing releases. Depends on https://github.com/mapbox/node-pre-gyp

Usage

{
    "binary": {
        "module_name": "myproject",
        "module_path": "./lib/binding/napi-v{napi_build_version}",
        "remote_path": "v{version}",
        "package_name": "{platform}-{arch}-napi-v{napi_build_version}.tar.gz",
        "host": "https://github.com/<myorg>/<myproject>/releases/download",
        "napi_versions": [
            3
        ]
    },
    "scripts": {
        "package": "node-pre-gyp package",
        "publish": "npm run package && node-pre-gyp-github publish"
    },
}

Attention: the remote_path have to resolve to a valid release tag!

Before publishing, you need to provide the NODE_PRE_GYP_GITHUB_TOKEN which is compatible to the original https://github.com/bchr02/node-pre-gyp-github.

How do I get the NODE_PRE_GYP_GITHUB_TOKEN?

Needed rights:

  • write:packages (for uploading release assets)
  • delete:packages (for replacing release assets)

See the how to https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago