forked from pixijs/pixijs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.js
42 lines (37 loc) · 833 Bytes
/
release.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env node
'use strict';
// Publish script to push releases of the bin files
// the normally are gitignored
const ghpages = require('gh-pages');
const path = require('path');
const packageInfo = require(path.join(__dirname, '..', 'package.json'));
const options = {
src: [
'dist/**/*',
'lib/**/*',
'src/**/*',
'scripts/**/*',
'test/**/*',
'*.json',
'*.md',
'LICENSE',
'.eslintrc',
'.editorconfig',
'.travis.yml',
'.babelrc',
],
dotfiles: true,
branch: 'release',
message: packageInfo.version,
logger: console.log.bind(console),
};
ghpages.publish(process.cwd(), options, (err) =>
{
if (err)
{
console.log(err);
process.exit(1);
return;
}
process.exit(0);
});