Skip to content

Commit

Permalink
ci: update release action with new pnpm config
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMikeladze committed Jul 4, 2024
1 parent 0b4a837 commit 2f2dc70
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,29 @@ jobs:
fetch-depth: 0

- name: Set up pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: latest
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-
- name: Deploy Storybook
uses: bitovi/[email protected]
Expand Down

0 comments on commit 2f2dc70

Please sign in to comment.