mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-05 03:52:40 +00:00
* security: add CI workflow to build dist/ after merge Phase 1 of removing dist/ from PRs to close security attack vector. Changes: - Add build-dist.yml workflow that builds and commits dist/ on push to main - Update CONTRIBUTING.md with build process documentation - Reset CHANGELOG.md to 0.0.1 (initial release) After this is verified working, Phase 2 will remove dist/ from git tracking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: prevent CI re-trigger on dist/ changes Add paths-ignore for dist/** to ci.yml so CI doesn't re-run when build-dist workflow commits compiled output. Addresses race condition. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: add concurrency, permissions, and build verification Address review feedback: - Add concurrency group to queue builds (prevents race conditions) - Add explicit contents: write permission - Add build verification step (test -f dist/index.js) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: run tests before building dist/ --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
422 B
YAML
24 lines
422 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- 'dist/**'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x, 20.x]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
- run: npm ci
|
|
- run: npm run test:coverage
|