Skip to content

Conversation

@chaance
Copy link
Contributor

@chaance chaance commented Dec 11, 2025

This PR updates the version of Node used internally to run scripts and CI. I swapped out .node-version for .nvmrc since nvm is the most widely used version manager, and it does not recognize the .node-version file. I opted not to set a minor or patch version here since it shouldn't be too important for our needs, but open to changing that if there's a hard preference.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 11, 2025

Greptile Overview

Greptile Summary

Updated internal Node version from 20 to 24, migrated from .node-version to .nvmrc for better version manager compatibility, and upgraded GitHub Actions (actions/checkout from v4 to v6, actions/setup-node from v4 to v6). The test matrix now includes Node 24 alongside 20 and 22.

Major Issues:

  • Critical YAML syntax errors in .github/workflows/ci.yml on lines 20-21, 35-36, and 68-69 will cause all CI jobs (prettier, lint, build) to fail
  • The syntax errors occur where step names are separated from their uses declarations

Minor Issues:

  • Step name in coana-guardrail.yml still references "Node.js 20.x" but now uses version 24 from .nvmrc

Confidence Score: 0/5

  • This PR contains critical syntax errors that will cause complete CI failure
  • The YAML syntax errors in .github/workflows/ci.yml will prevent all CI jobs from running successfully. These are blocking issues that must be fixed before the PR can be merged
  • .github/workflows/ci.yml requires immediate attention to fix syntax errors on lines 20-21, 35-36, and 68-69

Important Files Changed

File Analysis

Filename Score Overview
.github/workflows/ci.yml 0/5 Updated actions and Node version management, but contains critical YAML syntax errors on lines 20-21, 35-36, and 68-69 that will cause CI to fail
.github/workflows/coana-guardrail.yml 4/5 Updated actions and switched to .nvmrc file, but step name still references "Node.js 20.x" when using version 24
.github/workflows/release.yml 5/5 Updated actions and switched from Node 18 to .nvmrc (version 24) - correctly formatted

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant PR as Pull Request
    participant GHA as GitHub Actions
    participant NPM as NPM Registry
    
    Dev->>PR: Push changes to branch
    PR->>GHA: Trigger CI workflow
    
    Note over GHA: Checkout repository (v6)
    Note over GHA: Setup Node from .nvmrc (v24)
    
    GHA->>GHA: Run Prettier check
    GHA->>GHA: Run Lint check
    GHA->>GHA: Run Build
    
    loop Test Matrix [20, 22, 24]
        GHA->>GHA: Run tests with Node version
    end
    
    alt PR Merged & Release Published
        PR->>GHA: Trigger release workflow
        Note over GHA: Checkout repository (v6)
        Note over GHA: Setup Node from .nvmrc (v24)
        GHA->>GHA: Install dependencies
        GHA->>GHA: Build project
        
        alt Regular Release
            GHA->>NPM: Publish with --tag latest
        else Pre-Release
            GHA->>NPM: Publish with --tag next
        end
    end
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

Comment on lines 20 to 21
- name: Setup Node
- uses: actions/setup-node@v6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: invalid YAML syntax - missing uses on the same line as the step name

Suggested change
- name: Setup Node
- uses: actions/setup-node@v6
- name: Setup Node
uses: actions/setup-node@v6
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/ci.yml
Line: 20:21

Comment:
**syntax:** invalid YAML syntax - missing `uses` on the same line as the step name

```suggestion
      - name: Setup Node
        uses: actions/setup-node@v6
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines 35 to 36
- name: Setup Node
- uses: actions/setup-node@v6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: invalid YAML syntax - missing uses on the same line as the step name

Suggested change
- name: Setup Node
- uses: actions/setup-node@v6
- name: Setup Node
uses: actions/setup-node@v6
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/ci.yml
Line: 35:36

Comment:
**syntax:** invalid YAML syntax - missing `uses` on the same line as the step name

```suggestion
      - name: Setup Node
        uses: actions/setup-node@v6
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines 68 to 69
- name: Setup Node
- uses: actions/setup-node@v6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: invalid YAML syntax - missing uses on the same line as the step name

Suggested change
- name: Setup Node
- uses: actions/setup-node@v6
- name: Setup Node
uses: actions/setup-node@v6
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/ci.yml
Line: 68:69

Comment:
**syntax:** invalid YAML syntax - missing `uses` on the same line as the step name

```suggestion
      - name: Setup Node
        uses: actions/setup-node@v6
```

How can I resolve this? If you propose a fix, please make it concise.

with:
ref: ${{github.base_ref}} # checkout the base branch (usually master/main).

- name: Use Node.js 20.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: step name now references "Node.js 20.x" but actually uses version 24 from .nvmrc

Suggested change
- name: Use Node.js 20.x
- name: Use Node.js
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/coana-guardrail.yml
Line: 21:21

Comment:
**style:** step name now references "Node.js 20.x" but actually uses version 24 from `.nvmrc`

```suggestion
      - name: Use Node.js
```

How can I resolve this? If you propose a fix, please make it concise.

Copy link
Member

@nicknisi nicknisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@chaance chaance merged commit 6668414 into main Dec 11, 2025
9 checks passed
@chaance chaance deleted the chance/update-internal-tooling branch December 11, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants