Skip to content

Commit ce6e9be

Browse files
committed
chore: migrate release workflow from yarn to pnpm
1 parent 13c40ec commit ce6e9be

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,26 @@ jobs:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v4
1717

18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 8
22+
1823
- name: Setup Node.js 20.x
1924
uses: actions/setup-node@v4
2025
with:
2126
node-version: 20
22-
23-
- name: Enable Corepack
24-
run: corepack enable
27+
cache: 'pnpm'
2528

2629
- name: Install Dependencies
27-
run: yarn
30+
run: pnpm install
2831

2932
- name: Create Release Pull Request or Publish to npm
3033
id: changesets
3134
uses: changesets/action@v1
3235
with:
3336
# This expects you to have a script called release which does a build for your packages and calls changeset publish
34-
publish: yarn release
37+
publish: pnpm release
3538
env:
3639
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3740
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)