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 - deploy
npm: npm:
tags:
- docker
stage: build stage: build
script: script:
- npm run build - npm run build
except: artifacts:
- schedules paths:
- lib
docker-builder: docker-builder:
image: registry.gitlab.com/openstapps/projectmanagement/builder image: registry.gitlab.com/openstapps/projectmanagement/builder
@@ -73,6 +72,21 @@ scheduled-audit:
- npm audit - npm audit
stage: test 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: pages:
stage: deploy stage: deploy
script: script: