Skip to content

checkout to master before release #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 24, 2020
Merged

Conversation

liorheber
Copy link
Contributor

@liorheber liorheber commented Feb 24, 2020

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @kenshooui/react-tree@0.0.16-canary.26.133.0
# or 
yarn add @kenshooui/react-tree@0.0.16-canary.26.133.0

@hipstersmoothie
Copy link
Contributor

try:

before_deploy:
  - if [ "$TRAVIS_BRANCH" == "master" ];then
      git checkout master;
    fi;
deploy:
  - provider: script
    script: if [ "$GH_TOKEN" != "false" ];then npx auto shipit; fi;
    skip-cleanup: true
    on:
      all_branches: true

@liorheber
Copy link
Contributor Author

I'm not sure TRAVIS_BRANCH would work well because for PRs the travis_branch on the push task is also master.
Might need to use
export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)

@liorheber liorheber merged commit 28005a0 into master Feb 24, 2020
@liorheber liorheber deleted the checkout-master-on-release branch February 24, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants