Skip to content

Commit 69a4cd4

Browse files
committed
misc: use yarn
1 parent 7e9adca commit 69a4cd4

File tree

12 files changed

+12146
-24558
lines changed

12 files changed

+12146
-24558
lines changed

.github/workflows/npmtest.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ jobs:
2323
uses: actions/setup-node@v1
2424
with:
2525
node-version: ${{ matrix.node-version }}
26-
- shell: bash
26+
- run: yarn install --non-interactive --frozen-lockfile
2727
env:
28-
NPM_TOKEN: ${{secrets.npm_token}}
29-
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > ~/.npmrc
30-
- run: npm i
31-
- run: npm run build --if-present
32-
- run: npm test
28+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
29+
- run: yarn test

DEPLOYMENT.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cli/cli.ts --help
1313
For convenience, the script can also be used as a hardhat command with `hardhat migrate` and it can be also run with:
1414

1515
```
16-
npm run deploy
16+
yarn deploy
1717
```
1818

1919
The **migrate** command will:
@@ -27,22 +27,22 @@ The **migrate** command will:
2727
The script accepts multiple parameters that allow to override default values, print the available options with:
2828

2929
```
30-
npm run deploy -- --help
30+
yarn deploy -- --help
3131
```
3232

33-
NOTE: Please run `npm run build` at least once before running migrate as this command relies on artifacts produced in the compilation process.
33+
NOTE: Please run `yarn build` at least once before running migrate as this command relies on artifacts produced in the compilation process.
3434

3535
### Networks
3636

37-
By default, `npm run deploy` will deploy the contracts to a localhost instance of a development network.
37+
By default, `yarn deploy` will deploy the contracts to a localhost instance of a development network.
3838

3939
To deploy to a different network execute:
4040

4141
```
42-
npm run deploy -- --network {networkName}
42+
yarn deploy -- --network {networkName}
4343
4444
# Example
45-
npm run deploy -- --network kovan
45+
yarn deploy -- --network kovan
4646
```
4747

4848
The network must be configured in the `hardhat.config.ts` as explained in https://hardhat.org/config.
@@ -56,7 +56,7 @@ A configuration file called `graph.config.yml` contains the parameters needed to
5656
You can use a different set of configuration options by specifying the file location in the command line:
5757

5858
```
59-
npm run deploy -- --graph-config another-graph.config.yml
59+
yarn deploy -- --graph-config another-graph.config.yml
6060
```
6161

6262
Rules:
@@ -102,7 +102,7 @@ Some contracts require the address from previously deployed contracts. For that
102102
### Deploying a new testnet
103103

104104
1. Make sure contracts are up to date as you please.
105-
2. `npm run deploy-rinkeby` to deploy to Rinkeby. This will create new contracts with new addresses in `addresses.json`.
105+
2. `yarn deploy-rinkeby` to deploy to Rinkeby. This will create new contracts with new addresses in `addresses.json`.
106106
3. Update the `package.json` and `package-lock.json` files with the new package version and publish a new npm package with `npm publish`. You can dry-run the files to be uploaded by running `npm publish --dry-run`.
107107
4. Merge this update into master, branch off and save for whatever version of the testnet is going on, and then tag this on the github repo, pointing to your branch (ex. at `testnet-phase-1` branch). This way we can always get the contract code for testnet, while continuing to do work on mainnet.
108108
5. Pull the updated package into the subgraph, and other apps that depend on the package.json.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Testing is done with the following stack:
2929
- Typescript
3030
- Ethers
3131

32-
To test all files, use `npm run test`. To test a single file run:
32+
To test all files, use `yarn test`. To test a single file run:
3333
`npx hardhat test test/<FILE_NAME>.ts`.
3434

3535
### Contract addresses

cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PROVIDER_URL="http://localhost:8545"
1818
Also, run the following to create the proper typescript bindings for each contract:
1919

2020
```sh
21-
npm run build
21+
yarn build
2222
```
2323

2424
## Usage

0 commit comments

Comments
 (0)