1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-26 00:21:36 +01:00
foris-js/.gitlab-ci.yml

44 lines
498 B
YAML
Raw Permalink Normal View History

2019-08-27 16:10:14 +02:00
image: node:8-alpine
stages:
- test
- build
2019-10-07 17:16:27 +02:00
- publish
2019-08-27 16:10:14 +02:00
before_script:
- npm install
test:
stage: test
script:
- npm test
lint:
stage: test
script:
- npm run lint
build:
stage: build
script:
- npm pack
artifacts:
paths:
- foris-*.tgz
2019-10-07 17:16:27 +02:00
publish_beta:
stage: publish
only:
refs:
- dev
script:
- sh scripts/publish.sh beta
publish_latest:
stage: publish
only:
refs:
- master
script:
- sh scripts/publish.sh latest