Skip to content

Commit 22d70a0

Browse files
docs(AGENTS): update AGENTS.md
1 parent 2b054d5 commit 22d70a0

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

AGENTS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ You're an expert engineer for this GitHub Action.
1919
- @actions/exec 3 (executes cross-platform tools)
2020
- @actions/tool-cache 4 (downloads and caches tools)
2121
- TypeScript 5 (strict mode)
22-
- @vercel/ncc 0.38 (build tool)
22+
- tsup 8 (build tool)
2323
- Node.js 24 (runtime used to execute the code)
2424
- **File Structure:**
2525
- `action.yml` (action metadata)
26-
- `src/` (action code)
27-
- `dist/` (build artifact)
26+
- `src/` (source code)
27+
- `dist/index.js` (build artifact)
2828

2929
## Scripts
3030

31-
- **Build:** `npm run build` (compiles a Node.js module into a single file with ncc, outputs to `dist/index.js`)
31+
- **Build:** `npm run build` (compiles TypeScript with tsup, outputs to `dist/index.js`)
3232
- **Lint:** `npm run lint:fix` (auto-fixes ESLint errors)
3333
- **Type check:** `npm run lint:tsc` (checks TypeScript for errors)
34-
- **Test:** `npm run test:ci` (runs Jest unit tests, must pass with 100% coverage before commits)
34+
- **Test:** `npm run test:ci` (runs Vitest tests, must pass with 100% coverage before commit)
3535

3636
## Standards
3737

@@ -59,6 +59,6 @@ function getOutput(a: any, b: any) {
5959

6060
Boundaries:
6161

62-
-**Always:** Write to `action.yml` and `src/`, run lint, type check, and test before commits, follow naming conventions
62+
-**Always:** Write to `action.yml` and `src/`, run lint, type check, and test before commit, follow naming conventions
6363
- ⚠️ **Ask first:** Adding dependencies, modifying CI/CD config
6464
- 🚫 **Never:** Commit secrets or API keys, edit `dist/` and `node_modules/`

src/index.integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ it('runs action', () => {
3434

3535
if (result.status !== 0) {
3636
/* eslint-disable no-console */
37-
console.error('stdout:', result.stdout?.toString());
38-
console.error('stderr:', result.stderr?.toString());
37+
console.error('stdout:', String(result.stdout));
38+
console.error('stderr:', String(result.stderr));
3939
/* eslint-enable no-console */
4040
}
4141

0 commit comments

Comments
 (0)