From 2cb01beba383ce815e0cacbae276b76e81f79a2c Mon Sep 17 00:00:00 2001 From: Robert Helmer Date: Tue, 7 May 2024 09:19:50 -0700 Subject: [PATCH] bump npm and node versions everywhere --- .circleci/config.yml | 6 +++--- .github/workflows/build.yaml | 2 +- .github/workflows/e2e_cron.yml | 2 +- .github/workflows/e2e_pr.yml | 2 +- .github/workflows/lint.yaml | 2 +- .github/workflows/unittests.yaml | 2 +- esbuild.cronjobs.js | 2 +- netlify.toml | 2 +- package-lock.json | 4 ++-- package.json | 8 ++++---- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 535fd895d..8ff0b141e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,14 +3,14 @@ version: 2.1 executors: node: docker: - - image: cimg/node:20.12.0 + - image: cimg/node:22.1.0 auth: username: $DOCKER_USER password: $DOCKER_PASS node_with_python: docker: - - image: cimg/node:20.12.0 + - image: cimg/node:22.1.0 auth: username: $DOCKER_USER password: $DOCKER_PASS @@ -35,7 +35,7 @@ executors: description: "Which cimg/postgres tag to use" type: string docker: - - image: cimg/node:20.12 + - image: cimg/node:22.1 auth: username: $DOCKER_USER password: $DOCKER_PASS diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 277c025b7..345525aea 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,7 +12,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '20.12.x' + node-version: '22.1.x' - run: npm ci - run: npm run build-glean - run: cp .env-dist .env diff --git a/.github/workflows/e2e_cron.yml b/.github/workflows/e2e_cron.yml index 03503aa89..f269c0f4f 100644 --- a/.github/workflows/e2e_cron.yml +++ b/.github/workflows/e2e_cron.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.12 + node-version: 22.1 - name: Install dependencies run: npm ci diff --git a/.github/workflows/e2e_pr.yml b/.github/workflows/e2e_pr.yml index 45c9f676d..2ee2452ae 100644 --- a/.github/workflows/e2e_pr.yml +++ b/.github/workflows/e2e_pr.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.12 + node-version: 22.1 - name: Install dependencies run: npm ci diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ba4b0a1a8..408a44292 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -12,7 +12,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '20.12.x' + node-version: '22.1.x' - run: npm ci - run: npm run build-glean - run: npm run build-nimbus diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml index 7a2217788..a9ebd830d 100644 --- a/.github/workflows/unittests.yaml +++ b/.github/workflows/unittests.yaml @@ -12,7 +12,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '20.12.x' + node-version: '22.1.x' - run: npm ci - run: cp .env-dist .env - run: npm run build-glean diff --git a/esbuild.cronjobs.js b/esbuild.cronjobs.js index f779a8686..02f841e75 100644 --- a/esbuild.cronjobs.js +++ b/esbuild.cronjobs.js @@ -21,6 +21,6 @@ build({ format: "esm", outdir: "dist/scripts/cronjobs/", sourcemap: true, - target: "node20.12", + target: "node22.1", packages: "external", }); diff --git a/netlify.toml b/netlify.toml index 1bbe2c148..e90483ea0 100644 --- a/netlify.toml +++ b/netlify.toml @@ -18,4 +18,4 @@ # Default build command. command = "npm ci; cp .env-dist .env; npm run build-storybook" - environment = { NODE_VERSION = "20.12.0", NPM_VERSION = "10.2.4" } + environment = { NODE_VERSION = "22.1.0", NPM_VERSION = "10.7.0" } diff --git a/package-lock.json b/package-lock.json index 1d6a88c9e..0959764d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -105,8 +105,8 @@ "yaml": "^2.4.1" }, "engines": { - "node": "20.12.x", - "npm": "10.2.x" + "node": "22.1.x", + "npm": "10.7.x" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index ebfc084e3..83c6b0722 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "1.0.0", "description": "Firefox Monitor", "engines": { - "node": "20.12.x", - "npm": "10.2.x" + "node": "22.1.x", + "npm": "10.7.x" }, "type": "module", "scripts": { @@ -41,8 +41,8 @@ "homepage": "https://github.com/mozilla/blurts-server", "license": "MPL-2.0", "volta": { - "node": "20.12.0", - "npm": "10.2.4" + "node": "22.1.0", + "npm": "10.7.0" }, "dependencies": { "@aws-sdk/client-s3": "^3.569.0",