Skip to content

Commit dfed300

Browse files
committed
Set up for binary releases
Use node-pre-gyp-github. Ditch semantic-versioning, as it doesn't currently play well with node-pre-gyp.
1 parent a8acbd9 commit dfed300

File tree

3 files changed

+29
-21
lines changed

3 files changed

+29
-21
lines changed

.travis.yml

-13
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,6 @@ before_install:
1818
- npm i -g npm@^2.0.0
1919
before_script:
2020
- npm prune
21-
after_script:
22-
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
23-
after_success:
24-
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
25-
- python travis_after_all.py
26-
- 'export $(cat .to_export_back) &> /dev/null'
27-
- |
28-
if [ "$BUILD_LEADER" = "YES" -a "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
29-
echo "Checking coverage and release status."
30-
npm run semantic-release
31-
else
32-
echo "Either I'm a minion or the build failed. No semantic-releasing for me."
33-
fi
3421
branches:
3522
except:
3623
- "/^v\\d+\\.\\d+\\.\\d+$/"

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,17 @@ Symbols are not supported as properties.
5454
You cannot use undefined checks with this structure as the very act of
5555
checking ensures that the structure is defined. Use membership or
5656
length checks to determine if something is empty.
57+
58+
## Publishing a binary release
59+
60+
To make a new binary release:
61+
62+
- Edit package.json. Increment the `version` property.
63+
- `node-pre-gyp rebuild`
64+
- `node-pre-gyp package`
65+
- `node-pre-gyp-github publish`
66+
- `npm publish`
67+
68+
You will need a `NODE_PRE_GYP_GITHUB_TOKEN` with `repo:status`,
69+
`repo_deployment` and `public_repo` access to the target repo. You'll
70+
also need write access to the npm repo.

package.json

+15-8
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"main": "build/Release/autovivify",
55
"scripts": {
66
"test": "mocha",
7-
"install": "node-gyp rebuild",
8-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
7+
"install": "node-gyp rebuild"
8+
},
9+
"binary": {
10+
"module_name": "autovivify",
11+
"module_path": "build/Release",
12+
"host": "https://github.com/allenluce/node-autovivify/releases/download/{version}"
913
},
1014
"author": "Allen Luce",
1115
"repository": {
@@ -14,24 +18,27 @@
1418
},
1519
"license": "ISC",
1620
"gypfile": true,
17-
"dependencies": {
18-
"nan": "^2.2.0"
19-
},
2021
"devDependencies": {
2122
"bindings": "^1.2.1",
2223
"chai": "^3.5.0",
2324
"cz-conventional-changelog": "^1.1.5",
2425
"mocha": "^3.1.2",
25-
"node-gyp": "^3.2.1",
26-
"semantic-release": "^4.3.5"
26+
"nan": "^2.2.0",
27+
"node-gyp": "^3.2.1"
2728
},
2829
"config": {
2930
"commitizen": {
3031
"path": "./node_modules/cz-conventional-changelog"
3132
}
3233
},
34+
"version": "1.0.8",
3335
"engines": {
34-
"node": ">= 0.11.15",
36+
"node": ">= 0.10",
3537
"iojs": ">= 1.0.0"
38+
},
39+
"dependencies": {
40+
"aws-sdk": "^2.6.9",
41+
"node-pre-gyp": "^0.6.30",
42+
"node-pre-gyp-github": "^1.3.1"
3643
}
3744
}

0 commit comments

Comments
 (0)