chore(release): add agent release workflow #462
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm -w packages/cli run lint | |
| - run: npm -w packages/cli run typecheck | |
| test: | |
| name: Test | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm -w packages/cli run build | |
| - run: npm -w packages/cli test | |
| - name: Smoke test | |
| run: node packages/cli/dist/cli.js version | |
| pr-report: | |
| name: PR Report | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - run: npm ci | |
| - run: npm -w packages/pr-report test | |
| - run: npm -w packages/pr-report run build | |
| - run: test -f packages/pr-report/dist/index.js | |
| dashboard: | |
| name: Dashboard | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci --prefix packages/dashboard | |
| - run: npm run dashboard:build | |
| - name: Smoke test dashboard workflow build | |
| run: | | |
| mkdir -p /tmp/agentnote-dashboard-ci-notes | |
| printf '{"v":1,"commit":{"sha":"abc","short_sha":"abc"}}\n' > /tmp/agentnote-dashboard-ci-notes/abc.json | |
| NOTES_DIR=/tmp/agentnote-dashboard-ci-notes \ | |
| PAGES_DIR=/tmp/agentnote-dashboard-ci-pages \ | |
| PUBLIC_REPO=wasabeef/AgentNote \ | |
| npm run dashboard:build-pages | |
| - run: test -f /tmp/agentnote-dashboard-ci-pages/dashboard/index.html | |
| - run: test -f /tmp/agentnote-dashboard-ci-pages/dashboard/notes/abc.json | |
| - name: Smoke test integrated dashboard workflow build | |
| run: | | |
| mkdir -p /tmp/agentnote-dashboard-ci-site | |
| printf '<!doctype html><title>Docs</title>\n' > /tmp/agentnote-dashboard-ci-site/index.html | |
| NOTES_DIR=/tmp/agentnote-dashboard-ci-notes \ | |
| PAGES_DIR=/tmp/agentnote-dashboard-ci-site \ | |
| DASHBOARD_PAGES_MODE=integrated \ | |
| PUBLIC_REPO=wasabeef/AgentNote \ | |
| npm run dashboard:build-pages | |
| - run: test -f /tmp/agentnote-dashboard-ci-site/index.html | |
| - run: test -f /tmp/agentnote-dashboard-ci-site/dashboard/index.html | |
| website: | |
| name: Website | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci --prefix website | |
| - run: npm run build --prefix website |