2017-10-04 13:09:11 -04:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- 6
|
|
|
|
- node
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: npm release
|
2018-07-19 10:54:29 -04:00
|
|
|
if: branch = master OR branch = npm-publish
|
2017-10-04 13:09:11 -04:00
|
|
|
node_js: 6
|
|
|
|
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:
|
|
|
|
provider: npm
|
|
|
|
skip_cleanup: true
|
|
|
|
email: $NPM_EMAIL
|
|
|
|
api_key: $NPM_TOKEN
|
2017-10-05 10:20:59 -04:00
|
|
|
on:
|
|
|
|
all_branches: true
|