Skip to content

[migrate] upgrade to Cell-Router 4, Marked 16, Node.js 22, PNPM 10, L… #7

[migrate] upgrade to Cell-Router 4, Marked 16, Node.js 22, PNPM 10, L…

[migrate] upgrade to Cell-Router 4, Marked 16, Node.js 22, PNPM 10, L… #7

Workflow file for this run

name: CI & CD
on:
push:
branches:
- '**'
jobs:
Build-and-Deploy:
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install & Build
run: |
pnpm i --frozen-lockfile
pnpm build
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/source'
with:
publish_dir: ./dist
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master
force_orphan: true
cname: web-cell.dev
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./dist
vercel-args: ${{ github.ref == 'refs/heads/source' && '--prod' || '' }}