Skip to content

Commit a8305a6

Browse files
committed
fix workflow error
1 parent 04699e9 commit a8305a6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,30 @@ jobs:
6363
version: 8
6464
run_install: false
6565

66+
- name: Get pnpm store directory
67+
id: pnpm-cache
68+
run: |
69+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
70+
71+
- name: Setup pnpm cache
72+
uses: actions/cache@v3
73+
with:
74+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
75+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
76+
restore-keys: |
77+
${{ runner.os }}-pnpm-store-
78+
79+
- name: Install dependencies
80+
run: pnpm install --frozen-lockfile --prefer-offline
81+
6682
- name: Create Versioning Pull Request
6783
id: changesets
6884
uses: changesets/[email protected]
6985
env:
7086
GITHUB_TOKEN: ${{ github.token }}
7187
with:
7288
createGithubReleases: true
89+
version: pnpm changeset version
7390
publish: pnpm release
7491

7592
- name: Transform Packages

0 commit comments

Comments
 (0)