Skip to content

Commit 5ad8d3d

Browse files
committed
chore: update workflows to use pnpm for dependency management and build processes
1 parent 5989d1b commit 5ad8d3d

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
paths:
77
- 'docs/**'
88
- 'package.json'
9-
- 'package-lock.json'
9+
- 'pnpm-lock.yaml'
1010

1111
permissions:
1212
contents: read
@@ -26,17 +26,22 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828

29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: 9
33+
2934
- name: Setup Node
3035
uses: actions/setup-node@v4
3136
with:
3237
node-version: 20
33-
cache: npm
38+
cache: 'pnpm'
3439

3540
- name: Install Dependencies
36-
run: npm install
41+
run: pnpm install
3742

3843
- name: Build Docs
39-
run: npm run docs:build
44+
run: pnpm run docs:build
4045

4146
- name: Upload artifact
4247
uses: actions/upload-pages-artifact@v3

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ jobs:
1616
- name: Checkout Repo
1717
uses: actions/checkout@v4
1818

19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v3
21+
with:
22+
version: 9
23+
1924
- name: Setup Node.js 20.x
2025
uses: actions/setup-node@v4
2126
with:
2227
node-version: 20.x
28+
cache: 'pnpm'
2329

2430
- name: Install Dependencies
25-
run: npm install
31+
run: pnpm install
2632

2733
- name: Create Release Pull Request or Publish to npm
2834
id: changesets
2935
uses: changesets/action@v1
3036
with:
3137
# This expects you to have a script called release which does a build for your packages and calls changeset publish
32-
publish: npm run release
38+
publish: pnpm run release
3339
env:
3440
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3541
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,22 @@ jobs:
1414
- name: Checkout Repo
1515
uses: actions/checkout@v4
1616

17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v3
19+
with:
20+
version: 9
21+
1722
- name: Setup Node.js 20.x
1823
uses: actions/setup-node@v4
1924
with:
2025
node-version: 20.x
26+
cache: 'pnpm'
2127

2228
- name: Install Dependencies
23-
run: npm install
29+
run: pnpm install
2430

2531
- name: Build
26-
run: npm run build
32+
run: pnpm run build
2733

2834
- name: Test
29-
run: npm run test
35+
run: pnpm run test

0 commit comments

Comments
 (0)