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 .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
24
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# QA Instructions Action

A GitHub Action (TypeScript + Node 20) that generates QA instructions.
A GitHub Action (TypeScript + Node 24) that generates QA instructions.

## Build Commands

Expand All @@ -19,4 +19,4 @@ A GitHub Action (TypeScript + Node 20) that generates QA instructions.
- **Strict TypeScript** — `tsconfig.json` has `strict: true`. Do not use `any` without justification.
- **Lint and format before committing** — run `npm run lint` and `npm run format:check` before creating a commit.
- **Source lives in `src/`** — all TypeScript source code is in the `src/` directory. The `lib/` directory is intermediate compiler output and is git-ignored.
- **Node version** — defined in `.node-version` and must match the `runs.using` runtime in `action.yml`. When updating Node, change `.node-version`, `action.yml` (`runs.using`), and `@types/node` in `package.json` together.
- **Node version** — this project uses the active Node.js version supported by GitHub Actions (currently Node 24). The version is defined in `.node-version` and must match the `runs.using` runtime in `action.yml`. When updating Node, change `.node-version`, `action.yml` (`runs.using`), `@types/node` in `package.json`, and `@tsconfig/nodeXX` in both `package.json` and `tsconfig.json` together.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,16 @@ npm install

### Node Version

The Node version is defined in `.node-version` and must match the `runs.using` runtime in `action.yml`. GitHub Actions only supports specific Node runtimes (`node20`, `node24`, etc.). When updating, change all three locations together:
This project follows a policy of using the active Node.js version supported by GitHub Actions. The Node version is defined in `.node-version` and must match the `runs.using` runtime in `action.yml`. GitHub Actions only supports specific Node runtimes (`node20`, `node24`, etc.).

When updating to a new Node version, change all four locations together:

1. `.node-version`
2. `action.yml` → `runs.using`
3. `@types/node` version in `package.json`
4. `@tsconfig/nodeXX` version in `package.json` and `tsconfig.json`

Currently using **Node 20**. GitHub plans to deprecate `node20` in favor of `node24` in March 2026.
**Current version: Node 24**

### Making Changes

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ outputs:
instructions:
description: "The generated QA instructions"
runs:
using: "node20"
using: "node24"
main: "dist/index.js"
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@tsconfig/node20": "^20.1.9",
"@types/node": "^20",
"@tsconfig/node24": "^24.0.4",
"@types/node": "^24",
"esbuild": "^0.27.3",
"eslint": "^10",
"eslint-config-prettier": "^10",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node20/tsconfig.json",
"extends": "@tsconfig/node24/tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
Expand Down