Skip to content

Commit 26ba255

Browse files
committed
chore(ci): add Node.js setup step in GitHub Actions workflow for staking
- Introduced a new step to set up Node.js version 20.x in the contracts-staking-hardhat-tests.yml workflow. - Configured caching for npm dependencies to optimize build times.
1 parent 047ffc2 commit 26ba255

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/contracts-staking-hardhat-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ jobs:
2929
with:
3030
persist-credentials: 'false'
3131

32+
- name: Setup Node
33+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
34+
with:
35+
node-version: 20.x
36+
cache: npm
37+
cache-dependency-path: contracts/staking/package-lock.json
38+
3239
- name: Install dependencies
3340
working-directory: contracts/staking
3441
run: npm ci

0 commit comments

Comments
 (0)