Skip to content

Commit 8313893

Browse files
authored
use npm instead of yarn (ProjectOpenSea#32)
* use npm * Fix scripts * Update workflow
1 parent 1f285ec commit 8313893

File tree

5 files changed

+32990
-11109
lines changed

5 files changed

+32990
-11109
lines changed

.github/workflows/main.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ jobs:
1919
uses: actions/setup-node@v2
2020
with:
2121
node-version: "16.11.0"
22-
cache: yarn
22+
cache: npm
2323
env:
2424
NODE_AUTH_TOKEN: ${{ secrets.GH_PAT_TOKEN }}
2525

2626
- name: Install dependencies
27-
run: yarn install --immutable --ignore-scripts
27+
run: npm install --ignore-scripts
2828

2929
- name: Build
30-
run: yarn build
30+
run: npm run build
3131

3232
- name: Run linters
33-
run: yarn lint
33+
run: npm run lint
3434

3535
tests:
3636
runs-on: ubuntu-latest
@@ -41,15 +41,15 @@ jobs:
4141
uses: actions/setup-node@v2
4242
with:
4343
node-version: "16.11.0"
44-
cache: yarn
44+
cache: npm
4545
env:
4646
NODE_AUTH_TOKEN: ${{ secrets.GH_PAT_TOKEN }}
4747

4848
- name: Install dependencies
49-
run: yarn install --immutable --ignore-scripts
49+
run: npm install --ignore-scripts
5050

5151
- name: Build
52-
run: yarn build
52+
run: npm run build
5353

5454
- name: Run tests
55-
run: yarn test
55+
run: npm run lint

CONTRIBUTING.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44

55
We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage Node.js versions. Execute `nvm use`, if you have `nvm` installed.
66

7-
We currently use [yarn](https://yarnpkg.com/getting-started/install) to manage dependencies.
8-
9-
Then, run `yarn` after `yarn` is installed
7+
Then, run `npm`
108

119
## Running tests
1210

1311
To run the tests:
1412

1513
```
16-
yarn test
14+
npm run test
1715
```
1816

1917
The first run might fail due to typechain needing to compile. If so, just run the command again.

0 commit comments

Comments
 (0)