From dd0a082fbade3ca046255f0db6df0ec614c226a2 Mon Sep 17 00:00:00 2001 From: Marie <marie@kaifa.ch> Date: Fri, 2 Feb 2024 18:56:46 +0000 Subject: [PATCH] Add new file --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6ae2d60 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +image: node:latest + +stages: + - testing + - deploy + +test: + stage: testing + script: + - npm i + - npm run build + - npm run test + +publish-npm: + stage: deploy + needs: ['test'] + changes: + paths: + - package.json + script: + - echo "@sharkey:registry=https://${CI_SERVER_HOST}/api/v4/groups/2/packages/npm/" > .npmrc + - echo "//${CI_SERVER_HOST}/api/v4/groups/2/packages/npm/:_authToken=${NPM_TOKEN}" >> .npmrc + - npm i + - npm run build + - npm publish -- GitLab