Skip to content

fix: don't lose captured credential when login page redirects immedia… #3

fix: don't lose captured credential when login page redirects immedia…

fix: don't lose captured credential when login page redirects immedia… #3

Workflow file for this run

name: ci
# On push/PR: validate the manifest and prove the pack + sign path builds.
# The signer runs with a throwaway generated key (no secret needed on PRs).
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Validate manifest.json
run: node -e "const m=JSON.parse(require('fs').readFileSync('manifest.json','utf8')); if(m.manifest_version!==3) throw new Error('not MV3'); if(!m.key) throw new Error('missing manifest key (stable id)'); console.log('manifest ok:', m.name, m.version)"
- name: Build unpacked + zip
run: bash scripts/pack.sh
- name: Sign path build-check (throwaway key)
env:
CRX_URL: https://example.com/mxid-login.crx
run: |
npm install
node scripts/build-crx.mjs
test -f build/mxid-login.crx || { echo "::error::crx not produced"; exit 1; }
test -f build/update.xml || { echo "::error::update.xml not produced"; exit 1; }