Skip to content

setup content update structure #953

setup content update structure

setup content update structure #953

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: πŸ— Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: pnpm/action-setup@v3
with:
version: 9
- name: πŸ— Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: πŸ— Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Copy env
shell: bash
run: cp .env.example .env
- name: πŸ“¦ Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Typecheck
run: pnpm typecheck
- name: Lint
run: pnpm lint
# - name: πŸš€ Preview Trigger.dev
# if: github.event_name == 'pull_request'
# env:
# TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
# run: cd apps/sovoli.com && pnpm deploy:trigger
- name: πŸš€ Deploy Trigger.dev
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: cd apps/sovoli.com && pnpm deploy:trigger-prod