Skip to content

Commit ca650ce

Browse files
committed
Use pnpm
1 parent 3965c5a commit ca650ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+26564
-39902
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,35 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v5
18+
- run: corepack enable
1819
- name: Use Node.js ${{ matrix.node-version }}
1920
uses: actions/setup-node@v5
2021
with:
2122
node-version: ${{ matrix.node-version }}
22-
cache: 'npm'
23-
cache-dependency-path: 'package-lock.json'
24-
- run: npm ci
25-
- run: npm run lint
23+
cache: 'pnpm'
24+
cache-dependency-path: 'pnpm-lock.yaml'
25+
- run: pnpm install --frozen-lockfile
26+
- run: pnpm lint
2627

2728
- name: Build with Netlify badge
28-
run: npm run build-serial
29+
run: pnpm build-serial
2930
env:
3031
VITE_SHOW_NETLIFY_BADGE: true
3132
NODE_OPTIONS: --max_old_space_size=4096
3233

3334
- name: Build
34-
run: npm run build-serial
35+
run: pnpm build-serial
3536
env:
3637
NODE_OPTIONS: --max_old_space_size=4096
3738

3839
# Docusaurus doesn't support Node 14. These tasks can be removed once Node 14 is EOL (May 2023)
3940
- name: Build with Netlify badge (no docs)
40-
run: npx nx run-many --target=build --exclude=@rjsf/docs --parallel=false
41+
run: pnpm nx run-many --target=build --exclude=@rjsf/docs --parallel=false
4142
env:
4243
VITE_SHOW_NETLIFY_BADGE: true
4344
NODE_OPTIONS: --max_old_space_size=4096
4445
- name: Build (no docs)
45-
run: npx nx run-many --target=build --exclude=@rjsf/docs --parallel=false
46+
run: pnpm nx run-many --target=build --exclude=@rjsf/docs --parallel=false
4647
env:
4748
NODE_OPTIONS: --max_old_space_size=4096
4849

@@ -56,7 +57,7 @@ jobs:
5657
with:
5758
name: docs
5859
path: packages/docs/build
59-
- run: npm test
60+
- run: pnpm test
6061
deploy_playground_and_docs:
6162
runs-on: ubuntu-latest
6263
if: github.ref == 'refs/heads/main'

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v5
12+
- run: corepack enable
1213
- name: Use Node.js 22.x
1314
uses: actions/setup-node@v5
1415
with:
1516
node-version: 22.x
16-
cache: 'npm'
17-
cache-dependency-path: 'package-lock.json'
18-
- run: npm i -g npm@9
19-
- run: npm ci
20-
- run: npm run build-serial
17+
cache: 'pnpm'
18+
cache-dependency-path: 'pnpm-lock.yaml'
19+
- run: pnpm install --frozen-lockfile
20+
- run: pnpm build-serial
2121
env:
2222
NODE_OPTIONS: --max_old_space_size=4096
23-
- run: npm test
24-
- run: npm run lint
23+
- run: pnpm test
24+
- run: pnpm lint
2525
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
2626
env:
2727
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -38,6 +38,6 @@ jobs:
3838
3939
echo "NPM_TAG=${NPM_TAG_VALUE}" >> $GITHUB_ENV
4040
echo "Determined NPM_TAG: ${NPM_TAG_VALUE}"
41-
- run: npx nx release publish --tag=$NPM_TAG
41+
- run: pnpm nx release publish --tag=$NPM_TAG
4242
- if: always()
4343
run: rm .npmrc

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Hopefully this disables husky on github CI
22
[ -n "$CI" ] && exit 0
3-
npm run pre-commit:husky
3+
pnpm pre-commit:husky

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
1515
should change the heading of the (upcoming) version to include a major version bump.
1616
1717
-->
18+
# 6.0.2
19+
20+
## Dev / docs / playground
21+
22+
- Switch to pnpm for package management
23+
1824
# 6.0.1
1925

2026
## Dev / docs / playground

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build]
22
base = ""
33
publish = "packages/playground/dist"
4-
command = "npm run build-serial"
4+
command = "pnpm build-serial"
55
# Ignore dependabot PRs for deploy previews
66
ignore = "./netlify-ignore.sh"
77

0 commit comments

Comments
 (0)