ci: add build job

This commit is contained in:
2022-05-02 15:02:44 +02:00
parent b76e81b385
commit e676760e34
2 changed files with 9 additions and 4 deletions

View File

@@ -1,10 +1,15 @@
image: node:latest
stages:
- deploy
build:
script:
- yarn install
- yarn build
artifacts:
path:
- dist/
deploy:
stage: deploy
needs: [ build ]
script:
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">.npmrc
- npm publish