romulus-js/.drone.yml

45 lines
746 B
YAML

kind: pipeline
type: docker
name: build
steps:
- name: lint
image: node:lts-alpine
commands:
- npm install
- npm run lint
- name: test
image: node:lts-alpine
commands:
- npm run test
depends_on:
- lint
- name: build
image: node:lts-alpine
commands:
- apk add zip
- npm run build
- zip -r romulus-m.zip dist/
depends_on:
- test
- name: publish
image: plugins/gitea-release
depends_on:
- lint
- test
- build
when:
event:
- tag
settings:
base_url: https://git.jacknet.io
api_key:
from_secret: gitea_token
files:
- romulus-m.zip
checksum:
- md5
- sha256