Add new file

This commit is contained in:
Marie 2024-02-02 18:56:46 +00:00
parent f7880a4404
commit dd0a082fba

25
.gitlab-ci.yml Normal file
View file

@ -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