Skip to content

Commit fff226b

Browse files
authored
Merge pull request #1137 from graphprotocol/tmigone/pnpm
2 parents d41eec3 + 30356b0 commit fff226b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+27802
-27331
lines changed

.github/actions/setup/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ runs:
66
steps:
77
- name: Install Foundry
88
uses: foundry-rs/foundry-toolchain@v1
9-
- name: Enable corepack for modern yarn
9+
- name: Enable Corepack
1010
shell: bash
1111
run: corepack enable
1212
- name: Install Node.js
1313
uses: actions/setup-node@v4
1414
with:
1515
node-version: 18
16-
cache: 'yarn'
16+
cache: 'pnpm'
17+
- name: Set up pnpm via Corepack
18+
shell: bash
19+
run: corepack prepare [email protected] --activate
1720
- name: Install dependencies
1821
shell: bash
19-
run: yarn --immutable
22+
run: pnpm install --frozen-lockfile

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
- name: Set up environment
2323
uses: ./.github/actions/setup
2424
- name: Build
25-
run: yarn build || yarn build
25+
run: pnpm build || pnpm build

.github/workflows/ci-contracts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
- name: Build
2828
run: |
2929
pushd packages/contracts
30-
yarn build || yarn build
30+
pnpm build || pnpm build
3131
- name: Run tests
3232
run: |
3333
pushd packages/contracts
34-
yarn test:coverage
34+
pnpm test:coverage
3535
- name: Upload coverage report
3636
uses: codecov/codecov-action@v3
3737
with:

.github/workflows/ci-data-edge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
- name: Build
2626
run: |
2727
pushd packages/data-edge
28-
yarn build
28+
pnpm build
2929
- name: Run tests
30-
run: yarn test
30+
run: pnpm test

.github/workflows/ci-horizon.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ jobs:
2727
- name: Build contracts
2828
run: |
2929
pushd packages/contracts
30-
yarn build
30+
pnpm build
3131
popd
3232
- name: Build horizon
3333
run: |
3434
pushd packages/horizon
35-
yarn build
35+
pnpm build
3636
popd
3737
- name: Build subgraph service
3838
run: |
3939
pushd packages/subgraph-service
40-
yarn build
40+
pnpm build
4141
popd
4242
- name: Build hardhat-graph-protocol
4343
run: |
4444
pushd packages/hardhat-graph-protocol
45-
yarn build
45+
pnpm build
4646
popd
4747
- name: Run tests
4848
run: |
4949
pushd packages/horizon
50-
yarn test
50+
pnpm test

.github/workflows/ci-subgraph-service.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ jobs:
2727
- name: Build contracts
2828
run: |
2929
pushd packages/contracts
30-
yarn build
30+
pnpm build
3131
popd
3232
- name: Build horizon
3333
run: |
3434
pushd packages/horizon
35-
yarn build
35+
pnpm build
3636
popd
3737
- name: Build subgraph service
3838
run: |
3939
pushd packages/subgraph-service
40-
yarn build
40+
pnpm build
4141
popd
4242
- name: Build hardhat-graph-protocol
4343
run: |
4444
pushd packages/hardhat-graph-protocol
45-
yarn build
45+
pnpm build
4646
popd
4747
- name: Run tests
4848
run: |
4949
pushd packages/subgraph-service
50-
yarn test
50+
pnpm test

.github/workflows/ci-token-dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- name: Build
2929
run: |
3030
pushd packages/token-distribution
31-
yarn build
31+
pnpm build
3232
- name: Run tests
3333
run: |
3434
pushd packages/token-distribution
35-
yarn test
35+
pnpm test

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
required: true
99
type: choice
1010
options:
11-
- contracts
12-
- sdk
11+
- contracts
12+
- sdk
1313
tag:
1414
description: 'Tag to publish'
1515
required: true
@@ -27,10 +27,10 @@ jobs:
2727
submodules: recursive
2828
- name: Set up environment
2929
uses: ./.github/actions/setup
30+
- name: Set npm token for publishing
31+
run: pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.GRAPHPROTOCOL_NPM_TOKEN }}
3032
- name: Publish 🚀
3133
shell: bash
3234
run: |
3335
pushd packages/${{ inputs.package }}
34-
yarn npm publish --tag ${{ inputs.tag }} --access public
35-
env:
36-
YARN_NPM_AUTH_TOKEN: ${{ secrets.GRAPHPROTOCOL_NPM_TOKEN }}
36+
pnpm publish --tag ${{ inputs.tag }} --access public --no-git-checks

.github/workflows/verifydeployed.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Build
3434
run: |
3535
pushd packages/contracts
36-
yarn build || yarn build
36+
pnpm build || pnpm build
3737
3838
- name: Save build artifacts
3939
uses: actions/upload-artifact@v3
@@ -55,14 +55,14 @@ jobs:
5555
- name: Build
5656
run: |
5757
pushd packages/contracts
58-
yarn build || yarn build
58+
pnpm build || pnpm build
5959
- name: Get build artifacts
6060
uses: actions/download-artifact@v3
6161
with:
6262
name: contract-artifacts
6363

6464
- name: Verify contracts on Defender
65-
run: cd packages/contracts && yarn hardhat --network ${{ inputs.network }} verify-defender ${{ inputs.contracts }}
65+
run: cd packages/contracts && pnpm hardhat --network ${{ inputs.network }} verify-defender ${{ inputs.contracts }}
6666
env:
6767
DEFENDER_API_KEY: "${{ secrets.DEFENDER_API_KEY }}"
6868
DEFENDER_API_SECRET: "${{ secrets.DEFENDER_API_SECRET }}"

.yarnrc.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)