From a1b59c9fe33383f28d0a166a03f6980ddf734e3c Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Thu, 7 Mar 2024 19:49:55 +0100 Subject: [PATCH] Use consistent node versions --- .github/workflows/lint.yaml | 5 +++-- .github/workflows/publish-npm.yaml | 5 +++-- .github/workflows/test.yaml | 5 +++-- .nvmrc | 1 + .vscode/settings.json | 4 ++-- Dockerfile | 3 +-- 6 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c951c95e..1184cc2b 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,9 +14,10 @@ jobs: uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version-file: ".nvmrc" + cache: "yarn" registry-url: "https://registry.npmjs.org" - name: Install Dependencies diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml index 8aceae0f..14737d87 100644 --- a/.github/workflows/publish-npm.yaml +++ b/.github/workflows/publish-npm.yaml @@ -13,9 +13,10 @@ jobs: uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version-file: ".nvmrc" + cache: "yarn" registry-url: "https://registry.npmjs.org" - name: Install Dependencies diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bee83c99..aab9d2ed 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,9 +14,10 @@ jobs: uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16" + node-version-file: ".nvmrc" + cache: "yarn" registry-url: "https://registry.npmjs.org" - name: Install Dependencies diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..431076a9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +16.16.0 diff --git a/.vscode/settings.json b/.vscode/settings.json index 8a8e2505..bf315fc5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,7 +6,7 @@ "statusBarItem.hoverBackground": "#71C87D" }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "[solidity]": { "editor.tabSize": 4, @@ -22,4 +22,4 @@ "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "solidity.defaultCompiler": "localNodeModule" -} \ No newline at end of file +} diff --git a/Dockerfile b/Dockerfile index 955672f6..7cceb631 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM node:16.14-alpine +FROM node:16.16-alpine ENV SHELL /bin/ash ENV EXECUTE_PROGRAMMATICALLY=true @@ -24,4 +24,3 @@ RUN cd packages/zevm-app-contracts && npx hardhat compile && cd - WORKDIR /home/zetachain/ ENTRYPOINT ["ash"] -