Skip to content

Build and Package

Build and Package #10

Workflow file for this run

name: Build and Package
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true
- uses: actions/setup-node@v4
with:
node-version: 20
- run: node scripts/bump-version.mjs
- run: rm -rf dist/*
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add package.json package-lock.json manifest.json src/chrome/manifest.json src/firefox/manifest.json src/chrome/src/ui/settings.js src/firefox/src/ui/settings.js src/chrome/ARCHITECTURE.md src/firefox/ARCHITECTURE.md
git commit -m "chore: bump version"
- run: node scripts/build-zip.mjs
- run: |
git add -A dist
git commit -m "chore: rebuild dist zips"
- run: git push