Skip to content

Commit

Permalink
add publish steps
Browse files Browse the repository at this point in the history
  • Loading branch information
bgdavidx committed Apr 11, 2019
1 parent 2acbb86 commit b7fec25
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,25 @@
"node-pre-gyp": "amilajack/node-pre-gyp#neon-compat",
"node-pre-gyp-github": "^1.4.3"
},
"engines": {
"node": ">=10.12.0"
},
"os": [
"darwin",
"linux"
],
"cpu": [
"x64"
],
"scripts": {
"install": "node-pre-gyp install --fallback-to-build=false || neon build --release",
"package": "node-pre-gyp package",
"build": "neon build"
"build": "neon build",
"upload-binary": "node-pre-gyp package && node-pre-gyp-github publish"
},
"binary": {
"module_name": "index",
"host": "https://github.com/wherefortravel/minhash-node-rs",
"host": "https://github.com/wherefortravel/minhash-node-rs/releases/download/",
"remote_path": "{version}",
"package_name": "{node_abi}-{platform}-{arch}.tar.gz",
"module_path": "./native",
Expand All @@ -26,5 +37,9 @@
"files": [
"native/index.node",
"lib"
]
],
"repository": {
"type": "git",
"url": "git+https://github.com/wherefortravel/minhash-node-rs.git"
}
}

0 comments on commit b7fec25

Please sign in to comment.