Skip to content

Workflow file for this run

name: "Submit artifacts to Web Stores"
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: latest
run_install: true
- name: Use Node.js 16.x
uses: actions/[email protected]
with:
node-version: 16.x
cache: "pnpm"
- name: Build Chrome artifact
run: pnpm build --target=chrome-mv3 --zip
- name: Build Firefox artifact
run: pnpm build --target=firefox-mv2 --zip
- name: Browser Platform Publish
uses: PlasmoHQ/bpp@v3
with:
keys: ${{ secrets.SUBMIT_KEYS }}
chrome-file: build/chrome-mv3-prod.zip
firefox-file: build/firefox-mv2-prod.zip