Building with WXT & Migrate to MV3 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |