Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
node-version: 24
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run package
- name: Check Diff
run: git diff --exit-code dist/index.js
13 changes: 7 additions & 6 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Guidance for any AI assistant working with this repository.
## Tech Stack

- **Runtime**: Node.js 20+
- **Build Tool**: @vercel/ncc (bundles source into single dist/index.js)
- **Build Tool**: Rollup (bundles source into single dist/index.js)
- **Dependencies**: @actions/core, @actions/github
- **Release**: release-please (automated via GitHub Actions)

Expand All @@ -20,17 +20,18 @@ Guidance for any AI assistant working with this repository.
npm ci

# Build the action (bundles src/index.js → dist/index.js)
npm run build
npm run package
```

**Releases**: Handled automatically by release-please. When PRs with conventional commits are merged to `main`, release-please creates/updates a release PR. Merging that PR triggers the release.

## Project Structure

```
├── src/index.js # Main action source code
├── dist/index.js # Bundled output (committed, auto-generated)
├── action.yml # GitHub Action metadata and inputs
├── src/index.js # Main action source code
├── dist/index.js # Bundled output (committed, auto-generated)
├── action.yml # GitHub Action metadata and inputs
├── rollup.config.js # Rollup bundler configuration
└── .github/
└── workflows/
├── build.yml # CI: builds and checks dist is up-to-date
Expand All @@ -40,7 +41,7 @@ npm run build

## Key Development Notes

- **Always rebuild before committing**: After modifying `src/index.js`, run `npm run build` and commit the updated `dist/index.js`. The CI will fail if dist is out of sync.
- **Always rebuild before committing**: After modifying `src/index.js`, run `npm run package` and commit the updated `dist/index.js`. The CI will fail if dist is out of sync.
- **Single source file**: All action logic is in `src/index.js` (~40 lines)
- **No tests**: This project currently has no automated tests (`npm test` exits with error)
- **GitHub access**: Use the `gh` CLI for any required GitHub interactions.
Expand Down
Loading