From c9fecb1889b2caeb0b18d77c5493f7f35704668a Mon Sep 17 00:00:00 2001 From: LeeGuanLi Date: Sat, 7 Sep 2024 17:13:30 +0800 Subject: [PATCH] Update Vitepress config to add proxy for '/api' endpoint and set SHELL environment variable to bash --- .github/workflows/cf.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cf.yml b/.github/workflows/cf.yml index e44e8d4..987a199 100644 --- a/.github/workflows/cf.yml +++ b/.github/workflows/cf.yml @@ -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: 安装依赖