mirror of
https://github.com/zhigang1992/yarn.git
synced 2026-04-28 09:23:42 +08:00
**Summary** We've been using `node -p -e` where `-e` is redundant since it is implied by `-p`: https://nodejs.org/api/cli.html#cli_p_print_script This patch removes those extra `-e`s. **Test plan** All bundles should build on CI without errors.
16 lines
453 B
Bash
Executable File
16 lines
453 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
yarn version --new-version minor
|
|
VERSION=$(node -p "require('./package.json').version")
|
|
BRANCH=$(echo "$VERSION" | (IFS="."; read a b c && echo $a.$b-stable))
|
|
echo "$BRANCH"
|
|
git checkout -b "$BRANCH"
|
|
git push origin "$BRANCH" --follow-tags
|
|
git checkout master
|
|
yarn version --new-version preminor --no-git-tag-version
|
|
NEW_VERSION=$(node -p "require('./package.json').version")
|
|
git commit -a -m "$NEW_VERSION"
|
|
git push origin master
|