From ee8d4e5ccbb10743efef07c4f4ed620dae8c628f Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Fri, 8 Nov 2024 14:34:52 -0600 Subject: [PATCH] Put the node version in .node-version Netlify cannot read .tool-versions when it builds the site. --- .github/workflows/ci.yml | 12 ++++++------ .node-version | 1 + .tool-versions | 1 - 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86619a679..96155a61e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v4 with: - node-version-file: .tool-versions + node-version-file: .node-version - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache - name: ๐Ÿงช Run Tests @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v4 with: - node-version-file: .tool-versions + node-version-file: .node-version - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache - name: ๐Ÿ’จ ESLint @@ -47,7 +47,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v4 with: - node-version-file: .tool-versions + node-version-file: .node-version - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache - name: โœ… TypeScript lint @@ -58,7 +58,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v4 with: - node-version-file: .tool-versions + node-version-file: .node-version - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache - name: ๐Ÿ’… Prettier Check @@ -69,7 +69,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v4 with: - node-version-file: .tool-versions + node-version-file: .node-version - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache --check-cache deploy: @@ -82,7 +82,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v4 with: - node-version-file: .tool-versions + node-version-file: .node-version - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache - name: ๐Ÿ”จ Build diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..17719ce25 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +18.20.4 diff --git a/.tool-versions b/.tool-versions index c261b0d35..ba2b59c16 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1 @@ -nodejs 18.20.4 yarn 1.22.17