build: update dependencies and configuration files

This commit is contained in:
Karl-Philipp Wulfert
2019-11-18 15:13:43 +01:00
parent 1796e88227
commit 8a9ab5c041
5 changed files with 876 additions and 596 deletions

View File

@@ -1,9 +1,8 @@
image: node:lts-alpine
image: registry.gitlab.com/openstapps/projectmanagement/node
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- lib
- node_modules
before_script:
@@ -18,11 +17,24 @@ build:
stage: build
script:
- npm run build
artifacts:
paths:
- lib
audit:
stage: test
allow_failure: true
except:
- schedules
script:
- npm audit
stage: test
scheduled-audit:
only:
- schedules
script:
- npm audit
stage: test
pages:
stage: deploy
@@ -34,3 +46,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