mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 13:42:30 -05:00
c6f52ae643
* replace patchversion with date-time stamp: YYYYmmddHHMMSS * Bump to first major version Ready to start using this in gui.
24 lines
549 B
YAML
24 lines
549 B
YAML
language: node_js
|
|
node_js:
|
|
- 6
|
|
- node
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
jobs:
|
|
include:
|
|
- stage: npm release
|
|
if: branch IN (env(RELEASE_BRANCHES))
|
|
node_js: 6
|
|
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
|