Skip to content

Commit 164e308

Browse files
committed
ci: add pnpm steps
1 parent cd9c938 commit 164e308

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ env:
2222
DOCS_DEST_PATH: pages/mcp-server
2323
LEARN_DEST_PATH: src/data/learn/mcp-server
2424
NODE_VERSION: '20'
25+
PNPM_VERSION: '10' # Or your desired pnpm version
2526

2627
jobs:
2728
docs-deploy:
@@ -35,20 +36,28 @@ jobs:
3536
with:
3637
fetch-depth: 1
3738

39+
- name: Install pnpm
40+
uses: pnpm/action-setup@v4
41+
with:
42+
version: ${{ env.PNPM_VERSION }}
43+
3844
- name: Setup Node.js
3945
uses: actions/setup-node@v4
4046
with:
4147
node-version: ${{ env.NODE_VERSION }}
4248
cache: 'pnpm'
4349

50+
- name: Install dependencies
51+
run: pnpm install
52+
4453
- name: Clone docs repository
4554
run: git clone https://x-access-token:${{ secrets.GH_HYPERWEB_PAT }}@github.com/hyperweb-io/docs.hyperweb.io.git external-docs
4655

4756
- name: Sync the docs and build
4857
run: |
4958
rsync -av --delete ./docs/ ./external-docs/${{ env.DOCS_DEST_PATH }}/
5059
cd external-docs
51-
yarn install
60+
yarn install # This is for the external-docs repo, which uses yarn
5261
yarn export
5362
5463
- name: Git push

0 commit comments

Comments
 (0)