1 | 'use strict'
|
2 |
|
3 | module.exports = {
|
4 | command: 'publish-rc',
|
5 | desc: 'Publish a release candidate',
|
6 | builder: {
|
7 | branch: {
|
8 | describe: 'Where the latest good build is',
|
9 | type: 'string',
|
10 | default: 'build/last-successful'
|
11 | },
|
12 | remote: {
|
13 | describe: 'Which remote to use',
|
14 | type: 'string',
|
15 | default: 'origin'
|
16 | },
|
17 | distTag: {
|
18 | describe: 'The dist tag to publish the rc as',
|
19 | type: 'string',
|
20 | default: 'next'
|
21 | },
|
22 | preId: {
|
23 | describe: 'What to call the rc',
|
24 | type: 'string',
|
25 | default: 'rc'
|
26 | },
|
27 | type: {
|
28 | describe: 'What sort of update this will be',
|
29 | type: 'string',
|
30 | default: 'minor'
|
31 | },
|
32 | prefix: {
|
33 | describe: 'What to prefix the branch name with',
|
34 | type: 'string',
|
35 | default: 'release/'
|
36 | }
|
37 | },
|
38 | handler (argv) {
|
39 | const cmd = require('../src/publish-rc')
|
40 | return cmd(argv)
|
41 | }
|
42 | }
|