Files
react/scripts/release/config.js
Andrew Clark 1fd205ad2d Additional release script options for publishing canary versions (#12219)
* Additional release script options for publishing canary versions

- `branch` specifies a branch other than master
- `local` skips pulling from the remote branch and checking CircleCI
- `tag` specifies an npm dist tag other than `latest` or `next`

We may add a higher-level `canary` option in the future.

* Address Brian's feedback:

- Updated description of `local` option
- Throws if the `latest` tag is specified for a prerelease version
2018-02-13 11:44:27 -08:00

52 lines
1.0 KiB
JavaScript

'use strict';
const dependencies = ['fbjs', 'object-assign', 'prop-types'];
const paramDefinitions = [
{
name: 'dry',
type: Boolean,
description: 'Build artifacts but do not commit or publish',
defaultValue: false,
},
{
name: 'path',
type: String,
alias: 'p',
description:
'Location of React repository to release; defaults to [bold]{cwd}',
defaultValue: '.',
},
{
name: 'version',
type: String,
alias: 'v',
description: 'Semantic version number',
},
{
name: 'branch',
type: String,
alias: 'b',
description: 'Branch to build from; defaults to [bold]{master}',
defaultValue: 'master',
},
{
name: 'local',
type: Boolean,
description:
"Don't push or pull changes from remote repo. Don't check CI status.",
},
{
name: 'tag',
type: String,
description:
'The npm dist tag; defaults to [bold]{latest} for a stable' +
'release, [bold]{next} for unstable',
},
];
module.exports = {
dependencies,
paramDefinitions,
};