ci: add automatic publishing

This commit is contained in:
Karl-Philipp Wulfert
2019-05-27 12:48:40 +02:00
parent 579544a2b0
commit ea5cc912f0

View File

@@ -14,13 +14,12 @@ stages:
- deploy
npm:
tags:
- docker
stage: build
script:
- npm run build
except:
- schedules
artifacts:
paths:
- lib
docker-builder:
image: registry.gitlab.com/openstapps/projectmanagement/builder
@@ -73,6 +72,21 @@ scheduled-audit:
- npm audit
stage: test
package:
dependencies:
- build
tags:
- secrecy
stage: deploy
script:
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
- npm publish
only:
- /^v[0-9]+.[0-9]+.[0-9]+$/
artifacts:
paths:
- lib
pages:
stage: deploy
script: