Skip to content

Instantly share code, notes, and snippets.

@vecerek
Created November 11, 2018 00:50
Show Gist options
  • Save vecerek/0e3ab3315a15f90aa3ff07ae8f72f16c to your computer and use it in GitHub Desktop.
Save vecerek/0e3ab3315a15f90aa3ff07ae8f72f16c to your computer and use it in GitHub Desktop.
rollback: true
prepare:
- git diff-index --quiet HEAD --
- git checkout master
- git pull --rebase
- '[[ -f .nvmrc ]] && ./node_modules/.bin/check-node-version --node $(cat .nvmrc)'
- yarn install
test:
- yarn travis
build:
- yarn build
- git diff --staged --quiet || git commit -am "Update build file"
after_publish:
- git push --follow-tags origin master:master
changelog:
- ./node_modules/.bin/offline-github-changelog > CHANGELOG.md
- git add CHANGELOG.md
- git commit --allow-empty -m "Update changelog"
- git push origin master:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment