summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-08-20 19:05:49 -0700
committerMatthew Miller <matthew@millerti.me>2023-08-20 19:07:14 -0700
commitff0ce6891681728576ef911282f9209b70186a8b (patch)
tree58c6fac4ed769c1e6a7377d0499590212931731a
parent782b89152a5ae6c8b463ae8493f46e2f765d1419 (diff)
Add pnpm to CI
-rw-r--r--.github/workflows/ciChecks.yml22
1 files changed, 21 insertions, 1 deletions
diff --git a/.github/workflows/ciChecks.yml b/.github/workflows/ciChecks.yml
index dbf0c1a..9a99887 100644
--- a/.github/workflows/ciChecks.yml
+++ b/.github/workflows/ciChecks.yml
@@ -38,8 +38,28 @@ jobs:
deno-version: ${{ matrix.deno-version }}
- run: deno -V
+ # Install pnpm w/cache for quicker installs
+ # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
+ - name: Setup pnpm 8.6.12
+ uses: pnpm/action-setup@v2
+ with:
+ version: 8.6.12
+ run_install: false
+ - name: Get pnpm store directory
+ shell: bash
+ run: |
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
+ - name: Setup pnpm cache
+ uses: actions/cache@v3
+ with:
+ path: ${{ env.STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-store-
+
# Install deps
- - run: npm ci
+ - name: Install dependencies
+ run: pnpm install
# Build and test dnt packages
- run: npm run build:types # browser tests will need this to be built