1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-15 13:36:35 +02:00

Resolve "Automatic NPM publish."

This commit is contained in:
Maciej Lenartowicz
2019-10-07 14:43:57 +00:00
parent ee5f3da093
commit 5977e675cf
4 changed files with 57 additions and 6 deletions

View File

@ -3,6 +3,7 @@ image: node:8-alpine
stages:
- test
- build
- publish
before_script:
- npm install
@ -24,3 +25,19 @@ build:
artifacts:
paths:
- foris-*.tgz
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