Skip to content

Commit aeb4bfa

Browse files
committed
ci: update GitHub Actions workflows to use pnpm for dependency management and publishing
1 parent ee9113b commit aeb4bfa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ jobs:
1414
steps:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v4
17-
17+
- uses: pnpm/action-setup@v4
1818
- name: Setup Node.js 20.x
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: 20
22-
22+
cache: "pnpm"
2323
- name: Install Dependencies
24-
run: npm ci
24+
run: pnpm install -frozen-lockfile
2525

2626
- name: Create Release Pull Request or Publish to npm
2727
id: changesets
2828
uses: changesets/action@v1
2929
with:
30-
publish: npm run release
30+
publish: pnpm release
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
steps:
2323
- run: git config --global core.autocrlf false
2424
- uses: actions/checkout@v4
25+
- uses: pnpm/action-setup@v4
2526
- uses: actions/setup-node@v4
2627
with:
2728
node-version: 20
2829
cache: "pnpm"
29-
- uses: pnpm/action-setup@v4
3030
- run: pnpm install -frozen-lockfile
3131
- run: pnpm build
3232
- run: pnpm test

0 commit comments

Comments
 (0)