ci: update ci config

This commit is contained in:
Karl-Philipp Wulfert
2019-08-20 10:17:31 +02:00
parent 67ab2616be
commit 78e71910f4

View File

@@ -12,6 +12,7 @@ stages:
- build
- test
- deploy
- publish
build:
stage: build
@@ -70,21 +71,6 @@ scheduled-audit:
- npm audit
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:
stage: deploy
script:
@@ -95,3 +81,18 @@ pages:
artifacts:
paths:
- public
package:
dependencies:
- build
tags:
- secrecy
stage: publish
script:
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
- npm publish
only:
- /^v[0-9]+.[0-9]+.[0-9]+$/
artifacts:
paths:
- lib