Skip to content

Commit

Permalink
Yarn (#22)
Browse files Browse the repository at this point in the history
* Change GitHub workflows to use yarn instead of npm as required by @chainlink/contracts

* Update lint.yml Github workflow to use yarn, as with test.yml
  • Loading branch information
aschlosberg authored Jan 4, 2022
1 parent 68a8bb9 commit 911a32c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 309 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
uses: actions/cache@v2
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
key: modules-${{ hashFiles('yarn.lock') }}

- name: Install npm dependencies
- name: Install yarn dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts
run: rm -rf node_modules && yarn install --frozen-lockfile

- name: Check Solidity code formatting
run: npx prettier '**/*.sol' --check
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
uses: actions/cache@v2
with:
path: ./node_modules
key: modules-${{ hashFiles('package-lock.json') }}
key: modules-${{ hashFiles('yarn.lock') }}

- name: Install npm dependencies
- name: Install yarn dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts
run: rm -rf node_modules && yarn install --frozen-lockfile

- name: Setup Solidity tooling
run: |
Expand Down
303 changes: 0 additions & 303 deletions package-lock.json

This file was deleted.

0 comments on commit 911a32c

Please sign in to comment.