Skip to content

Chore :: Workflow Test #2

Chore :: Workflow Test

Chore :: Workflow Test #2

Workflow file for this run

name: CI
on:
push:
branches: ['develop']
pull_request:
types: [opened]
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: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install Vercel CLI
run: npm install --global vercel@latest && vercel link --repo --yes --token=${{ secrets.TURBO_TOKEN }}
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.TURBO_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.TURBO_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.TURBO_TOKEN }}