Add mobile view-only support + Woodpecker CI/CD pipeline #1
@@ -14,18 +14,29 @@
|
|||||||
# `npm ci` in the install step is enough for every later step to reuse.
|
# `npm ci` in the install step is enough for every later step to reuse.
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# Explicit event filter on these three (rather than the no-`when` default,
|
||||||
|
# which runs on every event Woodpecker knows about) because a deploy-time
|
||||||
|
# re-run of this pipeline is a `deployment` event, not `push` — install
|
||||||
|
# has to fire there too, or deploy-production's `npm run build` would run
|
||||||
|
# with no node_modules.
|
||||||
- name: install
|
- name: install
|
||||||
image: node:22-bookworm
|
image: node:22-bookworm
|
||||||
|
when:
|
||||||
|
- event: [push, deployment]
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: node:22-bookworm
|
image: node:22-bookworm
|
||||||
|
when:
|
||||||
|
- event: [push, deployment]
|
||||||
commands:
|
commands:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
|
||||||
- name: typecheck
|
- name: typecheck
|
||||||
image: node:22-bookworm
|
image: node:22-bookworm
|
||||||
|
when:
|
||||||
|
- event: [push, deployment]
|
||||||
commands:
|
commands:
|
||||||
- npx tsc -b
|
- npx tsc -b
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user