add drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-23 10:00:22 +01:00
parent ac60855ae5
commit 4bb9ef716c

56
.drone.yml Normal file
View File

@@ -0,0 +1,56 @@
---
kind: pipeline
type: docker
name: web-ui-ci
trigger:
branch:
- main
- develop
event:
- push
- pull_request
steps:
- name: install
image: node:22
commands:
- corepack enable
- corepack prepare yarn@1.22.22 --activate
- yarn install --frozen-lockfile
- name: build
image: node:22
commands:
- corepack enable
- corepack prepare yarn@1.22.22 --activate
- yarn build
---
kind: pipeline
type: docker
name: web-ui-publish
trigger:
branch:
- main
event:
- promote
target:
- production
steps:
- name: publish-npm
image: node:22
environment:
NEXUS_NPM_TOKEN:
from_secret: nexus_npm_token
commands:
- corepack enable
- corepack prepare yarn@1.22.22 --activate
- yarn install --frozen-lockfile
- export NEXUS_NPM_REGISTRY="https://nexus.beatrice.wtf/repository/npm-hosted/"
- REGISTRY_HOST="${NEXUS_NPM_REGISTRY#https://}"
- REGISTRY_HOST="${REGISTRY_HOST#http://}"
- printf "//%s:_authToken=%s\n" "$REGISTRY_HOST" "$NEXUS_NPM_TOKEN" > "$HOME/.npmrc"
- yarn publish:nexus