Skip to content

Commit

Permalink
build: new yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kyziq committed Jan 10, 2024
1 parent 8b445a4 commit faf3006
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/deploy-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,26 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'
node-version: 16

- name: Install pnpm
uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: '8'
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
Expand All @@ -47,7 +60,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dist' # Ensure your build output is in the 'dist' directory
path: './dist' # Ensure build output is in the 'dist' directory

- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit faf3006

Please sign in to comment.