build: add automatic publishing

Fixes #72
This commit is contained in:
Karl-Philipp Wulfert
2019-05-20 17:48:25 +02:00
committed by Rainer Killinger
parent e41169a9c7
commit 6ffa4efbaf
3 changed files with 35 additions and 11 deletions

View File

@@ -50,6 +50,21 @@ test:
- report
- coverage
package:
dependencies:
- build
tags:
- secrecy
stage: deploy
script:
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > /root/.npmrc
- npm publish
only:
- /^v[0-9]+.[0-9]+.[0-9]+$/
artifacts:
paths:
- lib
pages:
stage: deploy
script: