mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 03:32:52 +00:00
ci: add automatic publishing
This commit is contained in:
@@ -14,13 +14,12 @@ stages:
|
||||
- deploy
|
||||
|
||||
npm:
|
||||
tags:
|
||||
- docker
|
||||
stage: build
|
||||
script:
|
||||
- npm run build
|
||||
except:
|
||||
- schedules
|
||||
artifacts:
|
||||
paths:
|
||||
- lib
|
||||
|
||||
docker-builder:
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||
@@ -73,6 +72,21 @@ 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:
|
||||
|
||||
Reference in New Issue
Block a user