fix: 增加pnpm安装 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 网站部署 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: 配置 Node.js 环境 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: 安装 pnpm | |
run: npm install -g pnpm | |
- name: pnpm 依赖处理 | |
run: pnpm install | |
- name: 部署 | |
run: pnpm run deploy | |
env: | |
CREDENTIALS_JSON: ${{ secrets.JSON_STRING }} |