Files
yarn/scripts/release-branch.sh
Burak Yiğit Kaya 3f94e774bf Chore: fix misues of -p in node infocations (#4415)
**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.
2017-09-12 14:11:40 +01:00

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