Automated update on 2026-03-22 #36
This file contains hidden or 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: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| name: Build and Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build and package Chrome + Firefox | |
| run: pnpm package:all | |
| - name: Create source distribution | |
| run: git archive --format=zip --output=build/source.zip HEAD | |
| - name: Create or update GitHub Release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| TAG="v${VERSION}" | |
| NOTES=$(node scripts/get-release-notes.mjs) | |
| gh release create "$TAG" \ | |
| --title "Release $TAG" \ | |
| --notes "$NOTES" \ | |
| --latest \ | |
| "build/chrome-mv3-prod.zip#Chrome Extension" \ | |
| "build/firefox-mv3-prod.zip#Firefox Extension" \ | |
| "build/source.zip#Source Code (Mozilla Review)" \ | |
| 2>/dev/null || \ | |
| gh release upload "$TAG" \ | |
| build/chrome-mv3-prod.zip \ | |
| build/firefox-mv3-prod.zip \ | |
| build/source.zip \ | |
| --clobber |