diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b33011910..58655382a 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: '22.6.x' + node-version: '20.9.x' - run: npm ci - run: npm run build-glean # Verify that the build (incl. type-checking) succeeds diff --git a/.github/workflows/e2e_cron.yml b/.github/workflows/e2e_cron.yml index be53cb56c..9d0be2dfb 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: 22.6.x + node-version: 20.9.x - name: Install dependencies run: npm ci diff --git a/.github/workflows/e2e_pr.yml b/.github/workflows/e2e_pr.yml index 63629f615..7f7862ab2 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: 22.6.x + node-version: 20.9.x - name: Install dependencies run: npm ci diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 05d4a9598..86cc955ec 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: '22.6.x' + node-version: '20.9.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 83c3a974b..7da91d356 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: '22.6.x' + node-version: '20.9.x' - run: npm ci - run: npm run build-glean - run: npm test diff --git a/Dockerfile b/Dockerfile index bd47208bf..aa6d55a06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22.6-alpine +FROM node:20.9-alpine RUN addgroup -g 10001 app && \ adduser -D -G app -h /app -u 10001 app diff --git a/Dockerfile.cloudrun b/Dockerfile.cloudrun index 12480110a..cb923c2b2 100644 --- a/Dockerfile.cloudrun +++ b/Dockerfile.cloudrun @@ -1,4 +1,4 @@ -FROM node:22.6-alpine +FROM node:20.9-alpine RUN addgroup -g 10001 app && \ adduser -D -G app -h /app -u 10001 app diff --git a/docs/dependency-updates.md b/docs/dependency-updates.md index 5f1bb6f3e..0db7470c7 100644 --- a/docs/dependency-updates.md +++ b/docs/dependency-updates.md @@ -56,7 +56,7 @@ Alpine Linux distribution with the latest version of Node. GitHub's Dependabot only updates `Dockerfile`, but the Node version is specified in many different config files. The PR that Dependabot opens will always fail the lint check because -the script `scripts/check-node-version-alignment.js` will fail if the Node version isn't +the script `./src/scripts/build/checkNodeVersionAlignment.js` will fail if the Node version isn't set consistently across all config files. 1. clone the branch that Dependabot creates @@ -70,7 +70,7 @@ git clone dependabot/docker/node-22.6-alpine 2. Run the Node version alignment script and fix any problems it finds ```sh -node scripts/check-node-version-alignment.js +node ./src/scripts/build/checkNodeVersionAlignment.js ``` 3. Commit and push to branch Dependabot opened diff --git a/esbuild.cronjobs.js b/esbuild.cronjobs.js index 0c939e74f..63a18b9ee 100644 --- a/esbuild.cronjobs.js +++ b/esbuild.cronjobs.js @@ -21,6 +21,6 @@ build({ format: "esm", outdir: "dist/scripts/cronjobs/", sourcemap: true, - target: "node22.6", + target: "node20.9", packages: "external", }); diff --git a/netlify.toml b/netlify.toml index 84e61375b..40ae910e2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -18,4 +18,4 @@ # Default build command. command = "npm ci; npm run build-storybook" - environment = { NODE_VERSION = "22.6.0", NPM_VERSION = "10.8.1" } + environment = { NODE_VERSION = "20.9.0", NPM_VERSION = "10.1.0" } diff --git a/package-lock.json b/package-lock.json index 12c145f50..a1d8cacf4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -106,8 +106,8 @@ "yaml": "^2.5.0" }, "engines": { - "node": "22.6.x", - "npm": "10.8.x" + "node": "20.9.x", + "npm": "10.1.x" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 65d0932bd..28e85d049 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "1.0.0", "description": "Firefox Monitor", "engines": { - "node": "22.6.x", - "npm": "10.8.x" + "node": "20.9.x", + "npm": "10.1.x" }, "type": "module", "scripts": { @@ -58,8 +58,8 @@ "homepage": "https://github.com/mozilla/blurts-server", "license": "MPL-2.0", "volta": { - "node": "22.6.0", - "npm": "10.8.1" + "node": "20.9.0", + "npm": "10.1.0" }, "dependencies": { "@aws-sdk/client-s3": "^3.637.0",