feat: add automatic publishing

Fixes #6
This commit is contained in:
Karl-Philipp Wulfert
2019-05-23 13:53:10 +02:00
parent fb9791767d
commit d9c4ce48dc
3 changed files with 146 additions and 79 deletions

View File

@@ -17,6 +17,9 @@ build:
stage: build
script:
- npm run build
artifacts:
paths:
- lib
test:
stage: test
@@ -41,6 +44,21 @@ scheduled-audit:
only:
- schedules
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: