Created
February 28, 2020 11:21
-
-
Save mustafa-travisci/38ac079984c72a6e4307774e92f03c45 to your computer and use it in GitHub Desktop.
Job Conditions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
before_install: | |
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.0 | |
- export PATH="$HOME/.yarn/bin:$PATH" | |
cache: | |
yarn: true | |
directories: | |
- node_modules | |
notifications: | |
email: false | |
slack: | |
secure: REMOVED FOR GIST | |
node_js: | |
- 12.14.1 | |
jobs: | |
include: | |
- if: branch = master && type = pull_request | |
script: | |
- npm run build | |
- npm run build:icons | |
- npm test | |
# more scripts that you would like to add... | |
deploy: | |
provider: pages | |
cleanup: true | |
github_token: '$GITHUB_TOKEN' | |
keep_history: true | |
local_dir: dist | |
target_branch: master-dist | |
on: | |
branch: master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment