mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-15 18:56:18 +00:00
40 lines
474 B
YAML
40 lines
474 B
YAML
image: node:lts-alpine
|
|
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- lib
|
|
- node_modules
|
|
|
|
before_script:
|
|
- npm install
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- publish
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- npm run build
|
|
artifacts:
|
|
untracked: true
|
|
paths:
|
|
- node_modules/
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- npm test
|
|
|
|
docs:
|
|
stage: publish
|
|
script:
|
|
- npm run documentation
|
|
only:
|
|
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
|
|
artifacts:
|
|
paths:
|
|
- docs
|