Skip to content

Commit

Permalink
Update Vitepress config to add proxy for '/api' endpoint and set SHEL…
Browse files Browse the repository at this point in the history
…L environment variable to bash
  • Loading branch information
Leetfs committed Sep 7, 2024
1 parent b477036 commit c9fecb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ jobs:
env:
SHELL: /bin/bash # 设置 SHELL 环境变量为 bash

# 第三步:将 pnpm 的全局路径添加到环境变量 PATH 中
# 第三步:将 pnpm 的全局路径添加到 PATH 中,使用环境文件方法
- name: 添加 pnpm 到 PATH
run: echo "::add-path::$(pnpm env get-bin-path)"
run: |
echo "PNPM_HOME=$(pnpm env get-bin-path)" >> $GITHUB_ENV
echo "$PNPM_HOME" >> $GITHUB_PATH
# 第四步:安装依赖
- name: 安装依赖
Expand Down

0 comments on commit c9fecb1

Please sign in to comment.