@acalcutt/node-pre-gyp-github 2.0.1-pre.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/bin/node-pre-gyp-github.js +2 -0
- package/index.js +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -13,15 +13,18 @@ Instead of ```node-pre-gyp publish``` use **```node-pre-gyp-github publish```**
|
|
|
13
13
|
|
|
14
14
|
* --silent : Turns verbose messages off.
|
|
15
15
|
* --release : Publish the GitHub Release immediately instead of creating a Draft.
|
|
16
|
-
|
|
17
16
|
For Ex. ```node-pre-gyp-github publish --release```
|
|
17
|
+
* --commitish : Defines the branch to be used for the target_commitish parameter. Defaults to 'main' if omitted.
|
|
18
|
+
For Ex. ```node-pre-gyp-github publish --commitish master ```
|
|
19
|
+
|
|
20
|
+
|
|
18
21
|
|
|
19
22
|
## Install
|
|
20
23
|
|
|
21
24
|
```bash
|
|
22
|
-
npm install -g node-pre-gyp-github
|
|
25
|
+
npm install -g @acalcutt/node-pre-gyp-github
|
|
23
26
|
# or
|
|
24
|
-
yarn global add node-pre-gyp-github
|
|
27
|
+
yarn global add @acalcutt/node-pre-gyp-github
|
|
25
28
|
|
|
26
29
|
```
|
|
27
30
|
|
|
@@ -8,10 +8,12 @@ program
|
|
|
8
8
|
.description("publishes the contents of ./build/stage/{version} to the current version's GitHub release")
|
|
9
9
|
.option("-r, --release", "publish immediately, do not create draft")
|
|
10
10
|
.option("-s, --silent", "turns verbose messages off")
|
|
11
|
+
.option("-c, --commitish <branch>", "specify the branch for target_commitish, defaults to 'main'")
|
|
11
12
|
.action(async (options) => {
|
|
12
13
|
const opts = {
|
|
13
14
|
draft: !options.release,
|
|
14
15
|
verbose: !options.silent,
|
|
16
|
+
commitish: options.commitish || 'main'
|
|
15
17
|
};
|
|
16
18
|
try {
|
|
17
19
|
const nodePreGypGithub = new NodePreGypGithub();
|
package/index.js
CHANGED
|
@@ -64,7 +64,7 @@ export default class NodePreGypGithub {
|
|
|
64
64
|
owner: this.owner,
|
|
65
65
|
repo: this.repo,
|
|
66
66
|
tag_name: this.package_json.version,
|
|
67
|
-
target_commitish:
|
|
67
|
+
target_commitish: args.commitish,
|
|
68
68
|
name: 'node-v' + this.package_json.version,
|
|
69
69
|
body: this.package_json.name + ' ' + this.package_json.version,
|
|
70
70
|
draft: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acalcutt/node-pre-gyp-github",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "A node-pre-gyp module which provides the ability to publish to GitHub releases.",
|
|
5
5
|
"bin": "./bin/node-pre-gyp-github.js",
|
|
6
6
|
"main": "index.js",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"releases"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@octokit/rest": "
|
|
35
|
-
"commander": "
|
|
36
|
-
"semver": "^7.
|
|
34
|
+
"@octokit/rest": "22.0.1",
|
|
35
|
+
"commander": "14.0.3",
|
|
36
|
+
"semver": "^7.7.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"c8": "^
|
|
40
|
-
"chai": "
|
|
41
|
-
"chai-as-promised": "8.0.
|
|
42
|
-
"coveralls-next": "^
|
|
43
|
-
"mocha": "11.
|
|
44
|
-
"sinon": "
|
|
39
|
+
"c8": "^11.0.0",
|
|
40
|
+
"chai": "6.2.2",
|
|
41
|
+
"chai-as-promised": "8.0.2",
|
|
42
|
+
"coveralls-next": "^6.0.1",
|
|
43
|
+
"mocha": "11.7.5",
|
|
44
|
+
"sinon": "21.0.1"
|
|
45
45
|
},
|
|
46
46
|
"author": "Bill Christo",
|
|
47
47
|
"license": "MIT",
|