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