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 image: node commands: - yarn build:game depends_on: - install - name: build-pwa image: node commands: - yarn build:pwa depends_on: - install - name: test image: node commands: - yarn test depends_on: - build-game - build-pwa - name: deploy (production) image: dockette/vercel commands: - vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c when: branch: - main - name: deploy (preview) image: dockette/vercel commands: - vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c when: branch: - "!main"