From 373694e352893db5ef78de6f321e8d55c860f7b6 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Mon, 4 Dec 2023 11:37:56 -0600 Subject: [PATCH] Use a centralized .node-version file --- .github/workflows/check-dist.yml | 2 +- .github/workflows/check-formatting.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/rebuild-dependabot-prs.yml | 2 +- .github/workflows/test.yml | 2 +- .node-version | 1 + 6 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 01dc37e..beb99ce 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -34,7 +34,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 20.x + node-version-file: '.node-version' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/check-formatting.yml b/.github/workflows/check-formatting.yml index dd56152..ad3e2a4 100644 --- a/.github/workflows/check-formatting.yml +++ b/.github/workflows/check-formatting.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 20.x + node-version-file: '.node-version' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b128293..87e567e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 20.x + node-version-file: '.node-version' cache: npm - name: Install dependencies diff --git a/.github/workflows/rebuild-dependabot-prs.yml b/.github/workflows/rebuild-dependabot-prs.yml index 12a87b2..fa09457 100644 --- a/.github/workflows/rebuild-dependabot-prs.yml +++ b/.github/workflows/rebuild-dependabot-prs.yml @@ -26,7 +26,7 @@ jobs: - name: Setup Node.JS uses: actions/setup-node@v3 with: - node-version: 20.x + node-version-file: '.node-version' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45e1dba..d95c965 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Node.JS uses: actions/setup-node@v3 with: - node-version: 20.x + node-version-file: '.node-version' cache: 'npm' - name: Install dependencies diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..d5a1596 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.10.0