File: release-branch.sh

package info (click to toggle)
node-yarnpkg 1.13.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 93,036 kB
  • sloc: sh: 323; makefile: 19
file content (15 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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