Skip to content

Add GitHub Action for formatting CMS markdown content #318

Add GitHub Action for formatting CMS markdown content

Add GitHub Action for formatting CMS markdown content #318

Workflow file for this run

name: Turborepo Cache Build
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Cache Turborepo
uses: actions/cache@v3
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
env:
AIRTABLE_READ_ONLY_TOKEN: ${{ secrets.AIRTABLE_READ_ONLY_TOKEN }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
ENCRYPTION_SECRET_KEY: "a-random-key-so-that-ci-builds-dont-fail"