Skip to content

Instantly share code, notes, and snippets.

@mustafa-travisci
Created February 28, 2020 11:21
Show Gist options
  • Save mustafa-travisci/38ac079984c72a6e4307774e92f03c45 to your computer and use it in GitHub Desktop.
Save mustafa-travisci/38ac079984c72a6e4307774e92f03c45 to your computer and use it in GitHub Desktop.
Job Conditions
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