@acalcutt/node-pre-gyp-github 1.4.7 → 1.4.8

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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -61,6 +61,8 @@ module.exports = class NodePreGypGithub {
61
61
  }
62
62
 
63
63
  async createRelease(args) {
64
+ const prerelease = this.package_json.version.includes('pre');
65
+
64
66
  const options = {
65
67
  host: this.host,
66
68
  owner: this.owner,
@@ -70,7 +72,7 @@ module.exports = class NodePreGypGithub {
70
72
  name: 'node-v' + this.package_json.version,
71
73
  body: this.package_json.name + ' ' + this.package_json.version,
72
74
  draft: true,
73
- prerelease: false
75
+ prerelease: prerelease
74
76
  };
75
77
 
76
78
  Object.keys(args).forEach(function(key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acalcutt/node-pre-gyp-github",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
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",