From 486e3f270d21c00d6fc8e44c6006565634ea7efa Mon Sep 17 00:00:00 2001 From: Max <82761650+MaxMustermann2@users.noreply.github.com> Date: Fri, 19 Jul 2024 08:54:34 +0530 Subject: [PATCH] fix(ci): downgrade node due to nodejs/node#53902 (#56) A bug in node version 22.5.0 has caused the CI to fail. While a patch has been merged, a release is still awaited. This PR works around that by pinning the node version to one that does not contain the bug. Once there is a new release, the pinned part (`.4`) can be removed --- .github/workflows/lint.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f8f2113a..ce678fec 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,14 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '22' + # Node 22.5 has a bug + # https://github.com/nodejs/node/pull/53904 + # TODO: Once a version with the bug fix (above) is released, + # the version pin can be moved back to 22 + node-version: '22.4' + + - name: Clear npm cache + run: npm cache clean --force - name: Install Solhint run: npm install --save-dev solhint