Skip to content

Commit

Permalink
add pnpm to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dogfrogfog committed Jul 4, 2024
1 parent 9fd698d commit b3a35bf
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/deploy-storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,41 @@ permissions:

jobs:
deploy:
name: Deploy Storybook to Github pages
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
steps:
- id: build-publish
uses: bitovi/[email protected]
name: Deploy Storybook to Github pages
with:
path: storybook-static
install_command: pnpm install
Expand Down

0 comments on commit b3a35bf

Please sign in to comment.