Skip to content

Commit 2f2dc70

Browse files
committed
ci: update release action with new pnpm config
1 parent 0b4a837 commit 2f2dc70

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,29 @@ jobs:
2323
fetch-depth: 0
2424

2525
- name: Set up pnpm
26-
uses: pnpm/action-setup@v2
26+
uses: pnpm/action-setup@v4
2727
with:
2828
version: latest
29+
run_install: false
30+
31+
- name: Install Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 20
35+
cache: 'pnpm'
36+
37+
- name: Get pnpm store directory
38+
shell: bash
39+
run: |
40+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
41+
42+
- uses: actions/cache@v4
43+
name: Setup pnpm cache
44+
with:
45+
path: ${{ env.STORE_PATH }}
46+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
47+
restore-keys: |
48+
${{ runner.os }}-pnpm-store-
2949
3050
- name: Deploy Storybook
3151
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2

0 commit comments

Comments
 (0)