You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
components/.drone.yml

27 lines
730 B

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