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.
27 lines
733 B
27 lines
733 B
kind: pipeline
|
|
name: default
|
|
type: docker
|
|
|
|
steps:
|
|
- name: build
|
|
image: oven/bun:1
|
|
commands:
|
|
- bun install -g @angular/cli
|
|
- bun install && cd projects/codemirror6-editor && bun install
|
|
- bunx --bun 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
|