Skip to content

Commit

Permalink
changed to pnpm deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Ferentz committed Jan 17, 2024
1 parent 2bdb13d commit 702a77a
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,31 @@ jobs:
with:
node-version: 18
cache: 'npm'

- name: Setup pnpm@
uses: pnpm/action-setup@v2
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: npm install
run: pnpm install

- name: Build
run: npm run build
run: pnpm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand All @@ -48,4 +69,4 @@ jobs:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2

0 comments on commit 702a77a

Please sign in to comment.