ci: add automatic publishing

Fixes #21
This commit is contained in:
Karl-Philipp Wulfert
2019-05-27 18:02:10 +02:00
parent 13b4d3d498
commit 626d87639f

View File

@@ -14,8 +14,6 @@ stages:
- deploy
build:
tags:
- docker
stage: build
script:
- npm run build
@@ -56,6 +54,21 @@ routes:
paths:
- routes.md
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: