https://github.com/mathisloge/node-pre-gyp-github-ts
https://github.com/mathisloge/node-pre-gyp-github-ts
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mathisloge/node-pre-gyp-github-ts
- Owner: mathisloge
- Created: 2022-01-18T14:52:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T10:33:39.000Z (over 4 years ago)
- Last Synced: 2025-01-11T17:51:42.433Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@mathisloge/node-pre-gyp-github
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-pre-gyp-github
Publishes release assets to already existing releases.
Depends on https://github.com/mapbox/node-pre-gyp
# Usage
```json
{
"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///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