2017-10-04 13:09:11 -04:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2018-12-06 11:45:45 -05:00
|
|
|
- 8
|
2017-10-04 13:09:11 -04:00
|
|
|
- node
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
jobs:
|
|
|
|
include:
|
2018-12-07 08:40:46 -05:00
|
|
|
- stage: update translations
|
2018-12-07 08:46:16 -05:00
|
|
|
if: type == cron
|
2018-12-07 08:40:46 -05:00
|
|
|
script: ./scripts/update-translations.sh
|
2017-10-04 13:09:11 -04:00
|
|
|
- stage: npm release
|
2018-12-07 08:46:16 -05:00
|
|
|
if: branch in (master, npm-publish) AND type != cron
|
2018-12-06 11:45:45 -05:00
|
|
|
node_js: 8
|
2017-10-04 13:09:11 -04:00
|
|
|
script: npm run build
|
|
|
|
before_deploy:
|
2017-10-05 10:20:59 -04:00
|
|
|
- VPKG=$($(npm bin)/json -f package.json version)
|
|
|
|
- export VERSION=${VPKG/%?/}$(date +%Y%m%d%H%M%S)
|
|
|
|
- npm --no-git-tag-version version $VERSION
|
2017-10-04 13:09:11 -04:00
|
|
|
deploy:
|
2018-12-07 08:40:46 -05:00
|
|
|
provider: npm
|
2017-10-04 13:09:11 -04:00
|
|
|
skip_cleanup: true
|
|
|
|
email: $NPM_EMAIL
|
|
|
|
api_key: $NPM_TOKEN
|
2017-10-05 10:20:59 -04:00
|
|
|
on:
|
|
|
|
all_branches: true
|