Skip to content

Add CLI for uploading and linting template contents (#166) #2

Add CLI for uploading and linting template contents (#166)

Add CLI for uploading and linting template contents (#166) #2

Workflow file for this run

name: Main
on:
push:
branches: ["main"]
jobs:
check-and-deploy:
name: Check and Deploy
runs-on: ubuntu-latest
timeout-minutes: 5
concurrency: templates-check-and-deploy
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
TEMPLATES_API_CLIENT_ID: ${{ secrets.TEMPLATES_API_CLIENT_ID }}
TEMPLATES_API_CLIENT_SECRET: ${{ secrets.TEMPLATES_API_CLIENT_SECRET }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: npm ci
- run: npm run build:cli
# Need to install a second time to get the CLI build linked up in the
# right place.
- run: npm ci
- run: npm run check:ci
- run: npm run deploy
- run: npm run upload