Skip to content

Commit

Permalink
node.js v22 min
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Feb 22, 2025
1 parent 3953dfd commit b91d245
Show file tree
Hide file tree
Showing 31 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
"postCreateCommand": "yarn install --frozen-lockfile --prefer-offline && yarn install:playwright",
"customizations": {
"vscode": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/anthropic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-genai-commit.yml_
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-genai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 23]
node-version: [22, 23]
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-depth: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn playwright install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/genai-azure-service-principal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/genai-blog-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/genai-commander.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
#
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/genai-investigator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/genai-issue-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/genai-pr-commit-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/genai-pr-docs-commit-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/genai-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/huggingface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn compile
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ jobs:
steps:
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- run: npx --yes genaiscript --help
windows:
runs-on: windows-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- run: npx --yes genaiscript --help
macos:
runs-on: macos-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- run: npx --yes genaiscript --help
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: "22.x"
registry-url: "https://npm.pkg.github.com"
cache: yarn
- run: yarn install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build
FROM node:20-alpine as build
FROM node:22-alpine as build

WORKDIR /app
COPY . /app
Expand All @@ -12,7 +12,7 @@ RUN apk update --no-cache && \


# Prod
FROM node:20-alpine
FROM node:22-alpine

# Copy the necessary files from the build stage
COPY --from=build /app/packages/cli/built /app/packages/cli/built
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/getting-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ npx -v
You should see something similar or higher than the following versions:

```text
v20.11.1
10.5.0
v22.13.0
10.9.2
```

</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/scripts/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const container = await host.container()
By default, the container uses the [python:alpine](https://hub.docker.com/_/python/) image, which provides a minimal python environment. You can change the image using the `image` option.

```js 'image: "python:3"'
const container = await host.container({ image: "node:20" })
const container = await host.container({ image: "node:22" })
```

### Building images
Expand Down
2 changes: 1 addition & 1 deletion genaisrc/blog-generator.genai.mts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ let snippet: string | Fenced
Use these files to help you generate a topic for the blog post.
- the code will be executed in node.js v20 by the GenAIScript CLI
- the code will be executed in node.js v22 by the GenAIScript CLI
- the genaiscript type definition: genaisrc/genaiscript.d.ts. Assume that all globals are ambient. Do not import or require genaiscript module.
- the genaiscript samples: packages/sample/src/*.genai.*
- the documentation is in markdown and has frontmatter: docs/src/content/docs/**/*.md*
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"web-tree-sitter": "0.22.2"
},
"engines": {
"node": ">=20.0.0"
"node": ">=22.0.0"
},
"peerDependencies": {
"promptfoo": "0.104.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/sample/src/tla/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
## https://github.com/actions/setup-node
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"

- name: Run GenAIscript on the TLA+ specs that are added in this pull request.
## Identify git diff: $(git diff --name-only HEAD^ | grep '.tla')
Expand Down

0 comments on commit b91d245

Please sign in to comment.