-
Notifications
You must be signed in to change notification settings - Fork 3
Update internal Node version and GitHub actions #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Greptile OverviewGreptile SummaryUpdated internal Node version from 20 to 24, migrated from Major Issues:
Minor Issues:
Confidence Score: 0/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
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
|
There was a problem hiding this 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
.github/workflows/ci.yml
Outdated
| - name: Setup Node | ||
| - uses: actions/setup-node@v6 |
There was a problem hiding this comment.
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
| - 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.
.github/workflows/ci.yml
Outdated
| - name: Setup Node | ||
| - uses: actions/setup-node@v6 |
There was a problem hiding this comment.
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
| - 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.
.github/workflows/ci.yml
Outdated
| - name: Setup Node | ||
| - uses: actions/setup-node@v6 |
There was a problem hiding this comment.
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
| - 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 |
There was a problem hiding this comment.
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
| - 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.
nicknisi
left a comment
There was a problem hiding this 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!
This PR updates the version of Node used internally to run scripts and CI. I swapped out
.node-versionfor.nvmrcsince nvm is the most widely used version manager, and it does not recognize the.node-versionfile. 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.