Skip to content

Publish to Web Store #1

Publish to Web Store

Publish to Web Store #1

Workflow file for this run

name: 'Publish to Web Store'
on:
workflow_dispatch:
release:
types:
- published
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: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 22.x
cache: 'pnpm'
- name: Build the extension
env:
PLASMO_PUBLIC_GA_MEASUREMENT_ID: ${{ secrets.PLASMO_PUBLIC_GA_MEASUREMENT_ID }}
PLASMO_PUBLIC_GA_API_SECRET: ${{ secrets.PLASMO_PUBLIC_GA_API_SECRET }}
run: pnpm build
- name: Package the extension into a zip artifact
run: pnpm package
- name: Browser Platform Publish
uses: PlasmoHQ/[email protected]
with:
keys: ${{ secrets.SUBMIT_KEYS }}
artifact: build/chrome-mv3-prod.zip