Skip to content

Commit

Permalink
chore: update deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothpandian committed Feb 20, 2024
1 parent 822bb27 commit b798782
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,32 @@ jobs:
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3

- uses: pnpm/action-setup@v3
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
name: Setup pnpm cache
with:
path: ${{ env.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

- name: Build packages
run: pnpm build

- name: Install, build, and upload your site
uses: withastro/action@v1
with:
Expand Down

0 comments on commit b798782

Please sign in to comment.