Skip to content

Commit

Permalink
switched action
Browse files Browse the repository at this point in the history
  • Loading branch information
jackf723 committed Oct 30, 2023
1 parent 67221ec commit 8c87ca6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 39 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Test
on:
- push
- pull_request
jobs:
cache-and-install:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
39 changes: 0 additions & 39 deletions .github/workflows/deploy.yml

This file was deleted.

0 comments on commit 8c87ca6

Please sign in to comment.