Skip to content

Commit

Permalink
fix(build): update defender and graph deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipperism committed Oct 12, 2023
1 parent a311a1a commit e184933
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy-defender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,20 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.9.0
- name: Set up Node.js 18
uses: actions/setup-node@v3
with:
cache: "yarn"
cache: "pnpm"
node-version: "18.x"
- name: Install
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: Deploy Defender infra to testnets
if: github.ref == 'refs/heads/develop'
run: yarn deploy:defender:test
run: pnpm run deploy:defender:test
- name: Deploy Defender infra to mainnets
if: github.ref == 'refs/heads/main'
run: yarn deploy:defender:prod
run: pnpm run deploy:defender:prod
12 changes: 8 additions & 4 deletions .github/workflows/deploy-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,22 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.9.0
- name: Set up Node.js 18
uses: actions/setup-node@v3
with:
cache: "yarn"
node-version: "18.x"
- name: Install
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: Build the subgraph
run: yarn build:graph
run: pnpm run build:graph
- name: Deploy the subgraph to testnets
if: github.ref == 'refs/heads/develop'
run: yarn deploy:graph:test
run: pnpm run deploy:graph:test
- name: Deploy the subgraph to production
if: github.ref == 'refs/heads/main'
run: yarn deploy:graph:prod
run: pnpm run deploy:graph:prod

0 comments on commit e184933

Please sign in to comment.