Files
edgeever/.github/workflows/extension-build.yml
T
tianma-if c58fe81a13 feat(extension): add a manual Web Clipper store submission workflow
Chrome and Firefox uploads were done by hand. Submit Web Clipper now packages the extension and sends it for review without joining the product release.
2026-10-02 00:29:10 +08:00

59 lines
1.4 KiB
YAML

name: Build browser extensions
on:
pull_request:
paths:
- "apps/extension/**"
- "package.json"
- "bun.lock"
- "scripts/publish-web-clipper.mjs"
- "scripts/publish-web-clipper.test.mjs"
- ".github/workflows/extension-build.yml"
- ".github/workflows/extension-store.yml"
push:
branches:
- main
paths:
- "apps/extension/**"
- "package.json"
- "bun.lock"
- "scripts/publish-web-clipper.mjs"
- "scripts/publish-web-clipper.test.mjs"
- ".github/workflows/extension-build.yml"
- ".github/workflows/extension-store.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
build:
if: github.repository == 'tianma-if/edgeever'
name: Build Chromium and Firefox
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Test extension manifests
run: bun run test:extension
- name: Test store submission
run: bun test scripts/publish-web-clipper.test.mjs
- name: Build Chromium extension
run: bun run build:extension
- name: Build Firefox extension
run: bun run build:extension:firefox
- name: Lint Firefox extension
run: bun run lint:extension:firefox