diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..069fee5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +default: + image: node:latest + +stages: + - deploy + +publish-npm: + stage: deploy + script: + - echo "@cellule-financiere-pmo:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" > .npmrc + - echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc + - npm publish + only: + - tags \ No newline at end of file