mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 13:42:30 -05:00
a995aa5413
* Update Slack notification to always notify. * Add optional parameter to `tx-pull-www` to pull just resources for a particular language. Helpful when validations are failing for one language.
29 lines
717 B
YAML
29 lines
717 B
YAML
language: node_js
|
|
node_js:
|
|
- 8
|
|
- node
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
notifications:
|
|
slack: $SLACK_NOTIFICATION_TOKEN
|
|
jobs:
|
|
include:
|
|
- stage: update translations
|
|
if: type == cron
|
|
script: ./scripts/update-translations.sh
|
|
- stage: npm release
|
|
if: branch in (master, npm-publish) AND type != cron
|
|
node_js: 8
|
|
script: npm run build
|
|
before_deploy:
|
|
- 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
|
|
deploy:
|
|
provider: npm
|
|
skip_cleanup: true
|
|
email: $NPM_EMAIL
|
|
api_key: $NPM_TOKEN
|
|
on:
|
|
all_branches: true
|