Files
DIYgod 5c0c321b45 chore(deps): update dependencies and CI actions
- Upgrade WXT, React, TypeScript, Tailwind CSS and other packages to latest
- Migrate Tailwind CSS to v4 and the PostCSS plugin
- Update GitHub Actions to their latest major versions
- Add typecheck and format check scripts
2026-11-02 00:56:58 +08:00

46 lines
1.3 KiB
YAML

name: test
on:
push:
env:
WXT_UMAMI_ID: ${{ vars.WXT_UMAMI_ID || vars.PLASMO_PUBLIC_UMAMI_ID }}
WXT_UMAMI_URL: ${{ vars.WXT_UMAMI_URL || vars.PLASMO_PUBLIC_UMAMI_URL }}
WXT_UMAMI_SAMPLE_RATE: ${{ vars.WXT_UMAMI_SAMPLE_RATE || vars.PLASMO_PUBLIC_UMAMI_SAMPLE_RATE }}
jobs:
build:
runs-on: macos-latest
name: Build assets
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
with:
version: 12.16.1
run_install: false
- name: Use Node.js 24.x
uses: actions/setup-node@v7
with:
node-version: 24.x
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm typecheck
- name: Check formatting
run: pnpm format:check
- name: Package the extension for Chrome
run: pnpm zip
- name: Package the extension for Firefox
run: pnpm zip:firefox
- name: Package the extension for Safari
run: pnpm build:safari:zip
- name: Archive production artifacts
uses: actions/upload-artifact@v7
with:
name: build
path: |
build/safari-mv3-prod.zip
build/chrome-mv3-prod.zip
build/firefox-mv3-prod.zip