Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 8f40de9e authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

ci: publish on gitlab registry

parent 7d1fdabe
No related branches found
No related tags found
No related merge requests found
Pipeline #13097 failed
---
image: node:lts-slim
stages:
- test
- build
- deploy
variables:
NPM_ORGANIZATION: lydra
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
before_script:
- npm ci
pages:
stage: build
script:
- npm run build
- mv public public.dist
- mv dist public
artifacts:
paths:
- public
publish_gitlab_registry:
stage: deploy
needs:
- job: pages
artifacts: true
dependencies:
- pages
script:
- npm config set ${NPM_ORGANIZATION}:registry ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/
- npm config set -- '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken' "${CI_JOB_TOKEN}"
- npm config set -- '${CI_API_V4_URL}/packages/npm/:_authToken' "${CI_JOB_TOKEN}"
- npm publish
# rules:
# - if: $CI_COMMIT_TAG
.nvmrc 0 → 100644
v18.12.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment