Submit to Web Store #2
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: "Submit to Web Store" | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache npm modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Use Node.js 16.x | |
uses: actions/[email protected] | |
with: | |
node-version: 16.x | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build the extension | |
run: npm run build | |
- name: Package Chrome extension into a zip artifact | |
run: npm run package:chrome | |
- name: Package Firefox extension into a zip artifact | |
run: npm run package:firefox | |
- name: Browser Platform Publish | |
uses: PlasmoHQ/bpp@v3 | |
with: | |
keys: ${{ secrets.BPP_KEYS }} | |
artifact: build/chrome-mv3-prod.zip | |
- name: Browser Platform Publish | |
uses: PlasmoHQ/bpp@v3 | |
with: | |
keys: ${{ secrets.BPP_KEYS }} | |
artifact: build/firefox-mv3-prod.zip | |