kind: pipeline
type: docker
# Check if the game builds
# If yes, test if everything is nice
# If yes, deploy to vercel
steps:
- name: install
image: node
commands:
- yarn
- name: build-game
- yarn build:game
depends_on:
- install
- name: build-pwa
- yarn build:pwa
- name: prettier
- yarn lint:prettier:all
- build-game
- build-pwa
- name: eslint
- yarn lint:eslint --max-warnings=0
- name: check
- yarn check
- name: deploy (production)
image: dockette/vercel
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
when:
branch:
- main
- prettier
- eslint
- check
- name: deploy (preview)
exclude: