ci(fix): add steps to setup pnpm via official documentation

This commit is contained in:
Anda Toshiki 2023-05-22 19:21:43 +08:00
parent 70a7b90ff7
commit 3193a9fa9d

View File

@ -10,15 +10,16 @@ jobs:
steps: steps:
- name: Perform check out - name: Perform check out
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies and build/compile the site # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. - name: Install dependencies and build/compile the site # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: | run: |
chsh -s /bin/bash
wget -qO- https://get.pnpm.io/install.sh | sh -
pnpm install --frozen-lockfile pnpm install --frozen-lockfile
pnpm prepare pnpm prepare
pnpm lint pnpm lint
pnpm docs:build pnpm docs:build
- uses: pnpm/action-setup@v2
- name: Deploy to GitHub pages - name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4 uses: JamesIves/github-pages-deploy-action@v4
with: with: