feat: initial dev-configs monorepo
Shared configs for TypeScript projects: ESLint, Prettier, TypeScript, Vite, Jest, Playwright, Knip. Published as @vigdorov/* npm packages to Gitea registry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
51
.drone.yml
Normal file
51
.drone.yml
Normal file
@ -0,0 +1,51 @@
|
||||
## Library CI pipeline — for npm package publishing
|
||||
## Configure project via service.yaml
|
||||
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: ci
|
||||
|
||||
steps:
|
||||
- name: prepare
|
||||
image: alpine:3.19
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: GITEA_TOKEN
|
||||
commands:
|
||||
- apk add --no-cache git bash yq
|
||||
- git clone --depth 1 https://token:$GITEA_TOKEN@git.vigdorov.ru/vigdorov/ci-templates.git .ci
|
||||
- chmod +x .ci/scripts/*.sh
|
||||
- bash .ci/scripts/prepare.sh
|
||||
|
||||
- name: install
|
||||
image: node:22-alpine
|
||||
depends_on: [prepare]
|
||||
commands:
|
||||
- npm ci
|
||||
|
||||
- name: test
|
||||
image: node:22-alpine
|
||||
depends_on: [install]
|
||||
commands:
|
||||
- npm run lint
|
||||
- npm run test
|
||||
- npm run check
|
||||
|
||||
- name: build
|
||||
image: node:22-alpine
|
||||
depends_on: [test]
|
||||
commands:
|
||||
- npm run build
|
||||
|
||||
- name: publish
|
||||
image: node:22-alpine
|
||||
depends_on: [build]
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: GITEA_TOKEN
|
||||
commands:
|
||||
- bash .ci/scripts/publish-lib.sh
|
||||
|
||||
trigger:
|
||||
branch: [main]
|
||||
event: [push]
|
||||
Reference in New Issue
Block a user