2017-11-08 13:09:54 +00:00
|
|
|
image: node:latest
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2017-11-08 13:12:39 +00:00
|
|
|
- babel
|
2017-11-24 12:53:39 +00:00
|
|
|
- release
|
2017-11-08 13:09:54 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
- dist/
|
|
|
|
|
|
|
|
install_dependencies:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- npm install
|
2017-11-09 16:11:03 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
2017-11-24 12:53:39 +00:00
|
|
|
expire_in: 1 hour
|
2017-11-08 13:12:39 +00:00
|
|
|
|
|
|
|
babel_compile:
|
|
|
|
stage: babel
|
2017-11-09 16:09:27 +00:00
|
|
|
script: npm run build
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- dist/
|
2017-11-24 12:53:39 +00:00
|
|
|
expire_in: 1 hour
|
|
|
|
|
|
|
|
release:
|
2017-11-24 12:54:52 +00:00
|
|
|
stage: release
|
2017-11-24 12:56:42 +00:00
|
|
|
script: tar cfvj dist.tar.bz2 dist/*
|
2017-11-24 12:53:39 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- dist.tar.bz2
|
2017-11-24 13:07:50 +00:00
|
|
|
only:
|
|
|
|
- tags
|