mirror of
https://github.com/encounter/yarn.git
synced 2026-03-30 11:43:44 -07:00
12 lines
287 B
Bash
Executable File
12 lines
287 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
npm version minor
|
|
VERSION=$(node -p -e "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 master --follow-tags
|
|
git push origin "$BRANCH" --follow-tags
|