Skip to content

Commit

Permalink
Merge pull request #447 from Mister-Hope/master
Browse files Browse the repository at this point in the history
feat: use pnpm and update deps
  • Loading branch information
HuberTRoy authored Nov 9, 2023
2 parents 1f47858 + 310d485 commit 48acc8d
Show file tree
Hide file tree
Showing 12 changed files with 7,007 additions and 7,066 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,31 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
# choose node.js version to use
node-version: 16
- run: npm install -g yarn
- run: yarn install
- run: yarn docs:build
node-version: 20
cache: pnpm

- name: Build docs
run: pnpm docs:build

- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-1

- run: aws s3 sync ./docs/.vuepress/dist s3://doc.subquery.network/ --delete

- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
# choose node.js version to use
node-version: 16
- run: npm install -g yarn
- run: yarn install
- run: yarn docs:build
node-version: 20
cache: pnpm

- name: Build docs
run: pnpm docs:build

- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- run: npm install -g yarn
- run: yarn install
- run: yarn docs:build
node-version: 20
cache: pnpm

- name: Build docs
run: pnpm docs:build
Loading

0 comments on commit 48acc8d

Please sign in to comment.