Skip to content

Building with WXT & Migrate to MV3 #2

Building with WXT & Migrate to MV3

Building with WXT & Migrate to MV3 #2

name: Build WXT Extension
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build extension
run: pnpm run zip
- name: Build extension for firefox
run: pnpm run zip:firefox
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: extension-${{ github.sha }}
path: .output/*.zip