From 174a3a674fbeea2d629593c8c67f8d2c6ed3125d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 26 Sep 2024 02:01:49 +0200 Subject: [PATCH] Use node-version file to set the version once --- .github/workflows/gh-pages.yml | 3 ++- .node-version | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .node-version diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2897d1a..2a97016 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,3 +1,4 @@ +--- name: Deploy site to Pages on: @@ -30,7 +31,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: "20" + node-version-file: ".node-version" cache: npm - name: Install dependencies run: npm ci diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..3516580 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.17.0