From cb7d7a8fd580456779546124ae0da9dbad6bb498 Mon Sep 17 00:00:00 2001 From: Alex Olea Date: Wed, 11 Nov 2026 14:23:40 -0500 Subject: [PATCH] chore: hold new dependency releases for 2 days Add min-release-age=2 to .npmrc so npm resolves only versions that have been published for at least 2 days. .nvmrc still pointed at Node 18, which bundles an npm that ignores the setting. CI already runs Node 26, so pin an exact Node 26 version in .nvmrc. npm install -g ignores the project .npmrc, and every workflow runs npm install -g npm@latest, so pass --min-release-age=2 to those commands too. --- .github/workflows/build.yaml | 2 +- .github/workflows/check.yaml | 10 +++++----- .github/workflows/release.yaml | 2 +- .npmrc | 1 + .nvmrc | 2 +- CONTRIBUTING.md | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3b5dc39ea..e5dfd4a8c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,7 +21,7 @@ jobs: cache: 'npm' - name: Install latest npm - run: npm install -g npm@latest + run: npm install -g npm@latest --min-release-age=2 - name: Install dependencies run: npm ci diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 7fe57a32c..538f17855 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -21,7 +21,7 @@ jobs: cache: 'npm' - name: Install latest npm - run: npm install -g npm@latest + run: npm install -g npm@latest --min-release-age=2 - name: Install dependencies run: npm ci @@ -43,7 +43,7 @@ jobs: cache: 'npm' - name: Install latest npm - run: npm install -g npm@latest + run: npm install -g npm@latest --min-release-age=2 - name: Install dependencies run: npm ci @@ -65,7 +65,7 @@ jobs: cache: 'npm' - name: Install latest npm - run: npm install -g npm@latest + run: npm install -g npm@latest --min-release-age=2 - name: Install dependencies run: npm ci @@ -108,7 +108,7 @@ jobs: cache: 'npm' - name: Install latest npm - run: npm install -g npm@latest + run: npm install -g npm@latest --min-release-age=2 - name: Install dependencies run: npm ci @@ -138,7 +138,7 @@ jobs: cache: 'npm' - name: Install latest npm - run: npm install -g npm@latest + run: npm install -g npm@latest --min-release-age=2 - name: Install dependencies run: npm ci diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 70c2e5197..57ce443ac 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,7 +50,7 @@ jobs: cache: 'npm' - name: Install latest npm - run: npm install -g npm@latest + run: npm install -g npm@latest --min-release-age=2 - name: Install dependencies run: npm ci diff --git a/.npmrc b/.npmrc index 6b3c6110a..e8efe30cd 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ @contentful:registry=https://registry.npmjs.org ignore-scripts=true +min-release-age=2 diff --git a/.nvmrc b/.nvmrc index 3f430af82..820711756 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18 +v26.13.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 39fe1cf42..8d4d553f3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -46,7 +46,7 @@ | Tool | Version | Notes | |---|---|---| -| Node.js | 18+ | CI runs on Node 24; local dev works on 18+ | +| Node.js | 18+ | CI runs on Node 26 and `.nvmrc` pins 26.13.0; local dev works on 18+ | | npm | latest | `npm install -g npm@latest` | ## Getting Started