mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
* 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
18 lines
372 B
JavaScript
18 lines
372 B
JavaScript
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
const {execUnlessDry, logPromise} = require('../utils');
|
|
|
|
const push = async ({cwd, dry}) => {
|
|
await execUnlessDry('git push', {cwd, dry});
|
|
await execUnlessDry('git push --tags', {cwd, dry});
|
|
};
|
|
|
|
module.exports = async params => {
|
|
if (params.local) {
|
|
return;
|
|
}
|
|
return logPromise(push(params), 'Pushing to git remote');
|
|
};
|