1
1
mirror of https://github.com/primer/css.git synced 2024-11-24 05:06:04 +03:00
css/script/release-pr

12 lines
309 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
2017-07-27 23:26:21 +03:00
branch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
if [[ ! "$branch" =~ ^(master|release-) ]]; then
echo "🐦 Publishing PR (canary) release..."
npx lerna publish --canary --exact --npm-tag=pr $@
else
echo "Skipping PR release because '$branch' is master or release"
fi