mirror of
https://github.com/primer/css.git
synced 2024-11-28 04:43:05 +03:00
skipping deploy
This commit is contained in:
parent
a4d63922a4
commit
999c6d4372
@ -31,10 +31,4 @@ env:
|
||||
- MODULE=primer-utilities
|
||||
- MODULE=..;DEPLOY=true
|
||||
script: cd modules/$MODULE && npm install && npm test
|
||||
deploy:
|
||||
provider: script
|
||||
skip_cleanup: true
|
||||
script: cd $TRAVIS_BUILD_DIR && script/deploy
|
||||
on:
|
||||
all_branches: true
|
||||
condition: "$DEPLOY = true"
|
||||
after_success: cd $TRAVIS_BUILD_DIR && script/deploy
|
||||
|
@ -1,8 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
if [[ $DEPLOY != true ]]; then
|
||||
echo "Skipping deploy."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# always publish a canary release if this is a PR build
|
||||
if [[ $TRAVIS_PULL_REQUEST && $TRAVIS_PULL_REQUEST != false ]]; then
|
||||
echo "🐦 Publishing canary version..."
|
||||
echo "🐦 Publishing canary version..."
|
||||
echo npm run release-canary
|
||||
# merges to dev build a release candidate
|
||||
elif [[ $TRAVIS_BRANCH = release ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user