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 - build
- test - test
- deploy - deploy
- publish
build: build:
stage: build stage: build
@@ -70,21 +71,6 @@ scheduled-audit:
- npm audit - npm audit
stage: test 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: pages:
stage: deploy stage: deploy
script: script:
@@ -95,3 +81,18 @@ pages:
artifacts: artifacts:
paths: paths:
- public - 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