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

rename release-canary => release-pr

This commit is contained in:
Shawn Allen 2017-07-13 16:36:27 -07:00
parent 8142e247f8
commit cdf17a5bfb
3 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@
"clean": "lerna clean",
"diff": "lerna diff",
"updated": "lerna updated",
"release-canary": "script/release-canary",
"release-pr": "script/release-pr",
"release-candidate": "script/release-candidate",
"release": "script/release",
"test": "lerna run test"

View File

@ -5,9 +5,9 @@ set -e
# which makes this easier to test locally
args=${@:1}
# always publish a canary release if this is a PR build
# always publish a pr release if this is a PR build
if [[ $TRAVIS_EVENT_TYPE = pull_request ]]; then
script/release-canary ${args}
script/release-pr ${args}
# merges to dev build a release candidate
elif [[ $TRAVIS_BRANCH = dev ]]; then
script/release-candidate ${args}

View File

@ -7,10 +7,10 @@ npm_tag=pr
# the commit status context
context=npm/publish/${npm_tag}
echo "🐦 Publishing canary version to dist-tag '${npm_tag}'..."
echo "🐦 Publishing PR release to dist-tag '${npm_tag}'..."
lerna publish --npm-tag=${npm_tag} --canary --no-git ${args}
# get the canary version of primer-css from its package.json
# get the published version of primer-css from its package.json
version=`jq -r .version modules/${package}/package.json`
slug="${package}@${version}"