Sam
153ba14fab
All checks were successful
continuous-integration/drone/push Build is passing
- Convert to yarn v2 with zero installs - Refactor much of app to use config instead of flags Co-authored-by: Sam Therapy <sam@samtherapy.net> Reviewed-on: Sam/fediverse-imagebot#1
55 lines
845 B
YAML
55 lines
845 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: dependencies
|
|
image: node
|
|
commands:
|
|
- yarn --check-cache
|
|
|
|
- name: lint
|
|
image: node
|
|
depends_on:
|
|
- dependencies
|
|
commands:
|
|
- yarn lint:ci
|
|
|
|
- name: build
|
|
image: node
|
|
depends_on:
|
|
- dependencies
|
|
commands:
|
|
- yarn build
|
|
|
|
- name: test
|
|
image: node
|
|
depends_on:
|
|
- build
|
|
commands:
|
|
- yarn test
|
|
|
|
- name: package
|
|
image: node
|
|
depends_on:
|
|
- lint
|
|
- test
|
|
commands:
|
|
- yarn package
|
|
when:
|
|
event:
|
|
- tag
|
|
|
|
- name: Release
|
|
image: plugins/gitea-release
|
|
depends_on:
|
|
- package
|
|
settings:
|
|
api_key:
|
|
from_secret: release_api_key
|
|
base_url: https://git.froth.zone
|
|
files:
|
|
- dist/imagebot-*
|
|
when:
|
|
event:
|
|
- tag
|