Files
web-core/.drone.yml
Beatrice Dellacà a382bfee01
All checks were successful
continuous-integration/drone/push Build is passing
update drone
2026-02-23 23:34:16 +01:00

60 lines
1.3 KiB
YAML

---
kind: pipeline
type: docker
name: web-core-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: lint
image: node:22
commands:
- corepack enable
- corepack prepare yarn@1.22.22 --activate
- yarn lint
- name: build
image: node:22
commands:
- corepack enable
- corepack prepare yarn@1.22.22 --activate
- yarn build
---
kind: pipeline
type: docker
name: web-core-publish
trigger:
event:
- tag
ref:
- refs/tags/v*
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
- test "v$(node -p \"require('./package.json').version\")" = "$DRONE_TAG"
- npm config set //nexus.beatrice.wtf/repository/npm-hosted/:_authToken "$NEXUS_NPM_TOKEN"
- yarn publish:nexus