diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e25e947a..cf404f16 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,19 +21,28 @@ jobs: uses: actions/setup-node@v3 with: node-version: "lts/*" - - name: Cache dependencies - uses: actions/cache@v3 + - uses: pnpm/action-setup@v2 + name: Install pnpm with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + version: 8 + run_install: false + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-node- + ${{ runner.os }}-pnpm-store- - name: Install working-directory: ./packages/docs - run: npm ci + run: pnpm install - name: Build docs working-directory: ./packages/docs - run: npm run build + run: pnpm build - name: Deploy to gh-pages uses: peaceiris/actions-gh-pages@v3 with: