-
Notifications
You must be signed in to change notification settings - Fork 0
feat(BLDL23): automate browser extension packaging #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(BLDL23): automate browser extension packaging #5
Conversation
|
📦 Extension packages built successfully! |
1e6a02c to
a607dd6
Compare
a607dd6 to
9a8637a
Compare
.github/workflows/build.yml
Outdated
| # Continue on error to ensure we always get some output | ||
| continue-on-error: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to set this if we're not continuing on error.
.github/workflows/build.yml
Outdated
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "18" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LTS is 22, let's use that.
.github/workflows/build.yml
Outdated
| - name: Validate Firefox modifications | ||
| run: node -e "const m=JSON.parse(require('fs').readFileSync('build/firefox/manifest.json','utf8')); if(!m.background.scripts||!m.browser_specific_settings?.gecko||m.background.service_worker) {console.error('❌ Firefox manifest missing required modifications or still has service_worker'); process.exit(1);} console.log('✅ Firefox manifest properly modified')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems incredibly brittle to me, better to write tests or do this error checking in the build script than to do this check on every build.
.github/workflows/build.yml
Outdated
| - name: Upload build directory artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: build-directory | ||
| path: build/ | ||
| retention-days: 30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can most likely do without saving the entire build directory. The two zip files for Chrome/Firefox should be sufficient.
Added GitHub Actions workflow that automatically builds extension packages on every push to main and pull requests. The workflow installs dependencies, runs the build script, validates Firefox compatibility (ensuring proper manifest conversion from Chrome Manifest V3 to Firefox format), and uploads both Chrome and Firefox .zip files as build artifacts.
To Validate: