mirror of
https://github.com/primer/css.git
synced 2024-11-30 01:04:04 +03:00
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
language: node_js
|
|
node_js:
|
|
- 8
|
|
|
|
env:
|
|
global:
|
|
# github
|
|
- secure: "J+1oWjvvXjyrwkY/4IFWKdN/weFmQcPwlRuFG4R0Gb3rYe4nqtC9l68sJvmS8asc8dQMhOhcUZCH6sjvo7l2WD4NuK4umPSbs+rJNUsfbvH4pZjStQIj/3ll1OfQelGDWAYQWhIfciYY4F3Bp0ZWTfKOppLQ2AVIYu1fPVXDdlo="
|
|
# github changelog
|
|
- secure: "KcGydAqL7ryDh2rTJJB4wU8NE5BRtnrRXDEcPBScSscO3zFsHXHBDvvO04B/9hFVatXzGYXmkn+FZ0P9QikhvebzdwwyqUG2SKFiHhMvbX0m0WtAhn5NqDuKU1r5qy5YQ18r/tiLfC9GSAlEpfLAH58pwpcn8srV3Mn/yKvlrfs="
|
|
|
|
script:
|
|
- npm test
|
|
- script/check-versions
|
|
|
|
after_success:
|
|
# this will short-circuit the publish step if it fails to interpolate $NPM_API_KEY
|
|
- npm config set "//registry.npmjs.org/:_authToken=\${NPM_API_KEY}"
|
|
# copy the CHANGELOG.md primer for publishing
|
|
- cp CHANGELOG.md modules/primer
|
|
|
|
deploy:
|
|
# publish canary releases on all branches
|
|
# (the script will bail on release branches and master)
|
|
- provider: script
|
|
script: script/release-pr --yes
|
|
skip_cleanup: true
|
|
on:
|
|
all_branches: true
|
|
tags: false
|
|
|
|
# publish release candidates on release branches
|
|
- provider: script
|
|
script: script/release-candidate --yes
|
|
skip_cleanup: true
|
|
on:
|
|
branch: release*
|
|
tags: false
|
|
|
|
# publish "final" releases on master
|
|
- provider: script
|
|
script: script/release --yes
|
|
skip_cleanup: true
|
|
on:
|
|
branch: master
|
|
tags: false
|
|
|
|
- provider: script
|
|
script: script/deploy-docs
|
|
skip_cleanup: true
|
|
on:
|
|
all_branches: true
|
|
tags: false
|
|
|
|
notifications:
|
|
slack:
|
|
secure: W9lPRuuPMNwElkXZ8UZtu5phgUNleDCK0PgERa28dkh5b0Y9xzRpIQPRJfqVYAPtnMVXhfYcqryMzA4oj0E4fc7OxQsKmMeF1OcTuj5N4CM5xXR/qXDehOUTp6fpCToIX9d4hZ2H///PCExpul3TcfxYJe6EWQCHYd1n6zKRl8g=
|