Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dwu359 committed Oct 29, 2023
1 parent d4a8d56 commit 4dd19ac
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,30 @@ jobs:

steps:
- uses: actions/checkout@v3

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

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
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
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
if: steps.cache-yarn-cache.outputs.cache-hit != 'true'
run: yarn install
working-directory: ./frontend
- run: yarn lint
run: pnpm install
working-directory: ./frontend
# future: add yarn build once build errors are resolved
2 changes: 0 additions & 2 deletions serverless/pnpm-workspace.yaml

This file was deleted.

0 comments on commit 4dd19ac

Please sign in to comment.