mirror of
https://github.com/primer/css.git
synced 2024-12-24 22:53:58 +03:00
rename release-canary => release-pr
This commit is contained in:
parent
8142e247f8
commit
cdf17a5bfb
@ -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"
|
||||
|
@ -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}
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user