Skip to content

compress showcase gif #22

compress showcase gif

compress showcase gif #22

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- name: Check out Git repository ⏬
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- name: Set up Node.js 💿
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies 💤
run: pnpm install
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: master
- if: github.ref != 'refs/heads/master'
run: git branch --track master origin/master
- name: Check formatting 🎨
run: npx nx format:check
- name: Check lint errors 🧹
run: npx nx affected -t lint
- name: Build the site 🏗
run: npx nx run frontend:build:production
- name: Deploy 🚀
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/apps/frontend