Skip to content

Commit

Permalink
Use pnpm instead of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mad-Kat committed Feb 6, 2024
1 parent f6ac25b commit 0cc0f68
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0cc0f68

Please sign in to comment.