Skip to content

Commit

Permalink
fix: run pnpm in server side
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 16, 2023
1 parent 032e09c commit 8150253
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ jobs:
with:
path: "clone-files"

- name: 设置 node 环境
uses: actions/setup-node@v3
with:
node-version: "19.1.0"

- name: Install pnpm
run: npm install -g pnpm

- name: 安装依赖
run: pnpm install

- name: 编译打包
run: pnpm run build

- name: 设置 id_rsa
run: |
mkdir -p ~/.ssh/
Expand All @@ -68,6 +54,10 @@ jobs:
ssh root@${{secrets.REMOTE_HOST}} "
cd ${{secrets.REMOTE_SERVER_DIR}};
ls -a;
nvm use 19.1.0
npm install -g pnpm
pnpm install
pnpm run build
"
- name: 删除 id_rsa
Expand Down

0 comments on commit 8150253

Please sign in to comment.