Skip to content
Snippets Groups Projects
Commit 48a2a789 authored by Gaelle.Barris's avatar Gaelle.Barris
Browse files

Update .gitlab-ci.yml file

parent 456a1eac
No related branches found
No related tags found
No related merge requests found
image: node:19.1.0
stages:
- build
- publish
cache:
paths:
- node_modules/
build:
stage: build
script:
- |
echo "
@descartes:registry=https://${CI_SERVER_HOST}/api/v4/projects/8282/packages/npm/
//${CI_SERVER_HOST}/api/v4/projects/8282/packages/npm/:_authToken=${CI_JOB_TOKEN}
" > .npmrc
- npm install --force
- npm run build
artifacts:
expire_in: 10 min
paths:
- dist/
only:
- develop
- main
- tags
publish-gitlab-registry-private:
stage: publish
dependencies:
- build
script:
- |
echo "
@descartes:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}
" > .npmrc
- npm publish
artifacts:
expire_in: 10 min
paths:
- dist/
only:
- tags
publish-gitlab-registry-public:
stage: publish
needs: ["publish-gitlab-registry-private"]
script:
- |
echo "
@descartes:registry=https://${CI_SERVER_HOST}/api/v4/projects/17127/packages/npm/
//${CI_SERVER_HOST}/api/v4/projects/17127/packages/npm/:_authToken=${CI_JOB_TOKEN}
" > .npmrc
- npm publish
artifacts:
expire_in: 10 min
paths:
- dist/
only:
- tags
when: manual
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment