From 46b3e76c996fa8ec25a9a116d01a6b7d08831341 Mon Sep 17 00:00:00 2001 From: Rishikesh183 Date: Sun, 17 May 2026 21:48:27 +0530 Subject: [PATCH] Add .nvmrc and use node-version-file in workflows --- .github/workflows/browserstack.yml | 3 +-- .github/workflows/bundlewatch.yml | 3 +-- .github/workflows/css.yml | 3 +-- .github/workflows/docs.yml | 3 +-- .github/workflows/js.yml | 3 +-- .github/workflows/lint.yml | 3 +-- .github/workflows/node-sass.yml | 3 +-- .nvmrc | 1 + 8 files changed, 8 insertions(+), 14 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/browserstack.yml b/.github/workflows/browserstack.yml index c5cc00745456..fa1ed8861dd7 100644 --- a/.github/workflows/browserstack.yml +++ b/.github/workflows/browserstack.yml @@ -9,7 +9,6 @@ on: env: FORCE_COLOR: 2 - NODE: 22 permissions: contents: read @@ -29,7 +28,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: "${{ env.NODE }}" + node-version-file: ".nvmrc" cache: npm - name: Install npm dependencies diff --git a/.github/workflows/bundlewatch.yml b/.github/workflows/bundlewatch.yml index d26c2b958cd7..85927e3717e2 100644 --- a/.github/workflows/bundlewatch.yml +++ b/.github/workflows/bundlewatch.yml @@ -9,7 +9,6 @@ on: env: FORCE_COLOR: 2 - NODE: 22 permissions: contents: read @@ -27,7 +26,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: "${{ env.NODE }}" + node-version-file: ".nvmrc" cache: npm - name: Install npm dependencies diff --git a/.github/workflows/css.yml b/.github/workflows/css.yml index c25fd480e1e6..62b359b110cf 100644 --- a/.github/workflows/css.yml +++ b/.github/workflows/css.yml @@ -9,7 +9,6 @@ on: env: FORCE_COLOR: 2 - NODE: 22 permissions: contents: read @@ -27,7 +26,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: "${{ env.NODE }}" + node-version-file: ".nvmrc" cache: npm - name: Install npm dependencies diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 430e59dd8b45..9262a23b85b5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,7 +9,6 @@ on: env: FORCE_COLOR: 2 - NODE: 22 permissions: contents: read @@ -27,7 +26,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: "${{ env.NODE }}" + node-version-file: ".nvmrc" cache: npm - run: java -version diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index b85d73771715..17d0aadf7e22 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -9,7 +9,6 @@ on: env: FORCE_COLOR: 2 - NODE: 22 permissions: contents: read @@ -32,7 +31,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: ${{ env.NODE }} + node-version-file: ".nvmrc" cache: npm - name: Install npm dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 374b9b669eac..35f76b5ed4b8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,6 @@ on: env: FORCE_COLOR: 2 - NODE: 22 permissions: contents: read @@ -27,7 +26,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: "${{ env.NODE }}" + node-version-file: ".nvmrc" cache: npm - name: Install npm dependencies diff --git a/.github/workflows/node-sass.yml b/.github/workflows/node-sass.yml index 5fe75a52b913..fe36ad5ec24e 100644 --- a/.github/workflows/node-sass.yml +++ b/.github/workflows/node-sass.yml @@ -9,7 +9,6 @@ on: env: FORCE_COLOR: 2 - NODE: 22 permissions: contents: read @@ -27,7 +26,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: "${{ env.NODE }}" + node-version-file: ".nvmrc" - name: Build CSS with node-sass run: | diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000000..2bd5a0a98a36 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22