Skip to content

Commit

Permalink
maintenance: cache pnpm installation
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden committed Sep 29, 2024
1 parent e2f0f0c commit 90a587b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Setup node env
uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: 20
version: 9
run_install: false

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
- name: Install Node.js
uses: actions/setup-node@v4
with:
version: 8
run_install: false
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Install and Generate
run: |
# TODO - cache pnpm installation
pnpm install
pnpm generate # files are automatically sym-linked to dist/
- name: Generate static files
run: pnpm generate

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 90a587b

Please sign in to comment.