Build and publish package in CI
continuous-integration/drone/push Build is passing Details

main
Clément FRÉVILLE 10 months ago
parent 3cd97a4c23
commit 42e0bc3a99

@ -0,0 +1,26 @@
kind: pipeline
name: default
type: docker
steps:
- name: build
image: node:20-alpine3.19
commands:
- npm install -g @angular/cli
- npm install && cd projects/codemirror6-editor && npm install
- ng build codemirror6-editor
- name: publish
image: node:20-alpine3.19
commands:
- npm config set @sandkasten:registry https://codefirst.iut.uca.fr/git/api/packages/sandkasten/npm/
- npm config set -- '//codefirst.iut.uca.fr/git/api/packages/sandkasten/npm/:_authToken' "$PAT_TOKEN"
- cd dist/codemirror6-editor && npm publish --scope=@sandkasten
environment:
PAT_TOKEN:
from_secret: PAT_TOKEN
depends_on:
- build
when:
event:
- tag
Loading…
Cancel
Save