mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 02:08:34 +08:00
Better release script
Summary: Automatically tags and publish them upstream, less steps required in order to do the release rather than just `bump-oss-version.js` Differential Revision: D3913826 Pulled By: bestander fbshipit-source-id: 6e023e7ab7b486ff6e6cc8e946f19e10a7ceeef8
This commit is contained in:
committed by
Facebook Github Bot 1
parent
23d84c8df8
commit
db06fc6814
@@ -76,5 +76,18 @@ if (exec(`git tag v${version}`).code) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Push newly created tag
|
||||
exec(`git push origin v${version}`);
|
||||
|
||||
// Tag latest if doing stable release
|
||||
if (version.indexOf(`rc`) === -1) {
|
||||
exec(`git tag -d latest`);
|
||||
exec(`git push origin :latest`);
|
||||
exec(`git tag latest`);
|
||||
exec(`git push origin latest`);
|
||||
}
|
||||
|
||||
exec(`git push origin ${branch} --follow-tags`);
|
||||
|
||||
exit(0);
|
||||
/*eslint-enable no-undef */
|
||||
|
||||
Reference in New Issue
Block a user