Browse Source

ci: fix docs deployment (#750)

* ci: test changes to dep install

* ci: fix syntax in workflow

* ci: fix action order

* ci: test removing cwd

* ci: re-add cwd

* ci: switch back to manual pnpm i

* ci: fix cache dep path
Ahmed 5 months ago
parent
commit
55261b09d6
1 changed files with 8 additions and 8 deletions
  1. 8 8
      .github/workflows/deploy.yml

+ 8 - 8
.github/workflows/deploy.yml

@@ -22,7 +22,7 @@ permissions:
 concurrency:
   group: pages
   cancel-in-progress: false
-
+# 
 jobs:
   # Build job
   build:
@@ -31,21 +31,21 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v4
         with:
-          fetch-depth: 0 # Not needed if lastUpdated is not enabled
-      - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
+          fetch-depth: 0 
+      - name: Setup pnpm
+        uses: pnpm/action-setup@v3 
         with:
           package_json_file: docs/package.json
-          version: 8.15.1
-      # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
+          version: 9
       - name: Setup Node
         uses: actions/setup-node@v4
         with:
-          node-version: 18.18.2
-          cache: pnpm # or pnpm / yarn
+          node-version: 20
           cache-dependency-path: docs/pnpm-lock.yaml
+          cache: pnpm
       - name: Setup Pages
         uses: actions/configure-pages@v4
-      - name: Install dependencies and build
+      - name: Install Dependencies and Build
         shell: bash
         run: |
           cd docs