Skip to content

Commit cbf0d46

Browse files
committed
Initial commit of release script
1 parent d4628fb commit cbf0d46

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"electron-packager": "^6.0.0",
4141
"electron-prebuilt": "^0.37.2",
4242
"mocha": "^2.3.4",
43+
"request": "^2.70.0",
4344
"spectron": "~1.37.0",
4445
"standard-format": "^2.1.1"
4546
},

script/release

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env node
2+
3+
const request = require('request')
4+
5+
if (!process.env.ELECTRON_API_DEMO_GITHUB_TOKEN) {
6+
console.error('ELECTRON_API_DEMO_GITHUB_TOKEN environment variable not set')
7+
console.error('Set it to a token with repo scope created from https://github.com/settings/tokens/new')
8+
process.exit(1)
9+
}

0 commit comments

Comments
 (0)