Skip to content

feat: enhance home page (#694) #114

feat: enhance home page (#694)

feat: enhance home page (#694) #114

Workflow file for this run

name: On Commit Jobs
on:
workflow_dispatch:
push:
branches:
- next
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
database-migration:
runs-on: ubuntu-latest
environment: staging
steps:
- uses: actions/checkout@master
- name: Checkout repo
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
env:
S3_ACCESS_KEY_ID: ${{ secrets.PROD_S3_ACCESS_KEY_ID }}
S3_ENDPOINT: ${{ secrets.PROD_S3_ENDPOINT }}
S3_SECRET_ACCESS_KEY: ${{ secrets.PROD_S3_SECRET_ACCESS_KEY }}
S3_BUCKET: ${{ secrets.PROD_S3_BUCKET }}
- name: Apply all pending migrations to the database
run: npx prisma migrate deploy
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- name: Update the classroom data
run: pnpm run update-classroom-data
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
changesets-release:
name: Changesets Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/action-setup@v4
name: Install pnpm
# with:
# run_install: false
# - name: Get pnpm store directory
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
# - uses: actions/cache@v4
# name: Setup pnpm cache
# with:
# path: ${{ env.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm i
env:
S3_ACCESS_KEY_ID: ${{ secrets.PROD_S3_ACCESS_KEY_ID }}
S3_ENDPOINT: ${{ secrets.PROD_S3_ENDPOINT }}
S3_SECRET_ACCESS_KEY: ${{ secrets.PROD_S3_SECRET_ACCESS_KEY }}
S3_BUCKET: ${{ secrets.PROD_S3_BUCKET }}
- name: Create Release Pull Request
uses: changesets/action@v1
with:
publish: pnpm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}