From 7288c57d14f546e8f6231279885ed4e2a0cc3db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michalina=20Ciencia=C5=82a?= Date: Mon, 17 Oct 2022 14:44:58 +0200 Subject: [PATCH] Use actions running on `node16` Node 12 has been out of support since April 2022, as a result GitHub has started the deprecation process of Node 12 for GitHub Actions. They plan to migrate all actions to run on Node16 by Summer 2023. Some of the GH Marketplace actions that we've been using in our workflows were running on `node12`, but have already published new versions running on `node16`. We're updating those actions to the latest versions. Read more on https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. --- .github/workflows/contracts.yml | 28 ++++++++++++++-------------- .github/workflows/format.yml | 4 ++-- .github/workflows/npm.yml | 4 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/contracts.yml b/.github/workflows/contracts.yml index a6d1c54f..7c9e642f 100644 --- a/.github/workflows/contracts.yml +++ b/.github/workflows/contracts.yml @@ -25,9 +25,9 @@ jobs: contracts-build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "14.x" cache: "yarn" @@ -50,9 +50,9 @@ jobs: runs-on: ubuntu-latest if: github.event_name != 'schedule' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "14.x" cache: "yarn" @@ -68,9 +68,9 @@ jobs: if: github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "14.x" cache: "yarn" @@ -144,14 +144,14 @@ jobs: needs: [contracts-deployment-testnet] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download files needed for etherscan verification - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: Artifacts for etherscan verifcation - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: node-version: "14.x" cache: "yarn" @@ -179,9 +179,9 @@ jobs: github.event_name != 'workflow_dispatch' && github.event_name != 'schedule' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "14.x" cache: "yarn" @@ -198,14 +198,14 @@ jobs: github.event_name != 'workflow_dispatch' && github.event_name != 'schedule' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "14.x" cache: "yarn" - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: 3.8.5 diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 5a83d0c3..e94e982e 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -11,9 +11,9 @@ jobs: code-format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "14" cache: "yarn" diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 85942317..27d8b5ca 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -16,9 +16,9 @@ jobs: npm-compile-publish-contracts: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "14.x" registry-url: "https://registry.npmjs.org"