Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aidantrabs committed Nov 22, 2024
1 parent 9d17a59 commit 4f0acae
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/deploy-preview-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
jobs:
build-and-deploy-frontend:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: frontend
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -25,21 +21,22 @@ jobs:
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: 'frontend/pnpm-lock.yaml'
cache-dependency-path: '**/pnpm-lock.yaml'
- 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('frontend/pnpm-lock.yaml') }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
working-directory: frontend
run: pnpm install --frozen-lockfile
- name: Build
working-directory: frontend
run: pnpm build
- name: Deploy to server
uses: appleboy/scp-action@master
Expand Down

0 comments on commit 4f0acae

Please sign in to comment.