Skip to content

Commit 4c09d47

Browse files
authored
chore(repo): migrate to pnpm v12 (#10724)
1 parent 7ffbf74 commit 4c09d47

20 files changed

Lines changed: 1969 additions & 2136 deletions

File tree

‎.changeset/pnpm-twelve.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎.github/actions/init-blacksmith/action.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ runs:
110110
run: echo $TURBO_ARGS
111111

112112
- name: Install PNPM
113-
uses: pnpm/action-setup@v4.3.0
113+
uses: pnpm/action-setup@v6.1.0
114114

115115
- name: Setup NodeJS ${{ inputs.node-version }}
116116
uses: useblacksmith/setup-node@v5.0.4
@@ -125,6 +125,10 @@ runs:
125125
run: pnpm install --frozen-lockfile
126126
shell: bash
127127

128+
- name: Export Node version
129+
shell: bash
130+
run: node -p '"NODE_VERSION=" + process.versions.node' >> "$GITHUB_ENV"
131+
128132
- name: Add node_modules/.bin to PATH
129133
run: echo "${{ github.workspace }}/node_modules/.bin" >> $GITHUB_PATH
130134
shell: bash

‎.github/actions/init/action.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ runs:
110110
run: echo $TURBO_ARGS
111111

112112
- name: Install PNPM
113-
uses: pnpm/action-setup@v4.3.0
113+
uses: pnpm/action-setup@v6.1.0
114114

115115
- name: Setup NodeJS ${{ inputs.node-version }}
116116
uses: actions/setup-node@v4.4.0
@@ -125,6 +125,10 @@ runs:
125125
run: pnpm install --frozen-lockfile
126126
shell: bash
127127

128+
- name: Export Node version
129+
shell: bash
130+
run: node -p '"NODE_VERSION=" + process.versions.node' >> "$GITHUB_ENV"
131+
128132
- name: Add node_modules/.bin to PATH
129133
run: echo "${{ github.workspace }}/node_modules/.bin" >> $GITHUB_PATH
130134
shell: bash

‎.github/workflows/actions.lock‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ workflows:
1010
- 'actions/github-script@v7.1.0'
1111
- 'actions/upload-artifact@v4.6.2'
1212
- 'clerk/break-check@v0.6.0'
13-
- 'pnpm/action-setup@v4.3.0'
13+
- 'pnpm/action-setup@v6.1.0'
1414
- 'useblacksmith/cache@v5'
1515
- 'useblacksmith/setup-node@v5.0.4'
1616
'.github/workflows/ci.yml':
@@ -19,20 +19,20 @@ workflows:
1919
- 'actions/github-script@v7.1.0'
2020
- 'actions/setup-node@v4.4.0'
2121
- 'actions/upload-artifact@v4.6.2'
22-
- 'pnpm/action-setup@v4.3.0'
22+
- 'pnpm/action-setup@v6.1.0'
2323
- 'useblacksmith/cache@v5'
2424
- 'useblacksmith/setup-node@v5.0.4'
2525
'.github/workflows/e2e-cleanups.yml':
2626
- 'actions/cache@v4.3.0'
2727
- 'actions/checkout@v4.4.0'
2828
- 'actions/github-script@v7.1.0'
2929
- 'actions/setup-node@v4.4.0'
30-
- 'pnpm/action-setup@v4.3.0'
30+
- 'pnpm/action-setup@v6.1.0'
3131
'.github/workflows/e2e-staging.yml':
3232
- 'actions/checkout@v4.4.0'
3333
- 'actions/github-script@v7.1.0'
3434
- 'actions/upload-artifact@v4.6.2'
35-
- 'pnpm/action-setup@v4.3.0'
35+
- 'pnpm/action-setup@v6.1.0'
3636
- 'slackapi/slack-github-action@v1.27.1'
3737
- 'useblacksmith/cache@v5'
3838
- 'useblacksmith/setup-node@v5.0.4'
@@ -42,15 +42,15 @@ workflows:
4242
- 'actions/setup-node@v4.4.0'
4343
- 'actions/upload-artifact@v4.6.2'
4444
- 'dtolnay/rust-toolchain@v1'
45-
- 'pnpm/action-setup@v4.3.0'
45+
- 'pnpm/action-setup@v6.1.0'
4646
- 'swatinem/rust-cache@v2.9.2'
4747
'.github/workflows/expo-native-build.yml':
4848
- 'actions/cache@v4.3.0'
4949
- 'actions/checkout@v4.4.0'
5050
- 'actions/setup-java@v4.9.1'
5151
- 'actions/setup-node@v4.4.0'
5252
- 'gradle/actions@v6.3.0'
53-
- 'pnpm/action-setup@v4.3.0'
53+
- 'pnpm/action-setup@v6.1.0'
5454
'.github/workflows/labeler-apply.yml':
5555
- 'actions/checkout@v4.4.0'
5656
- 'actions/download-artifact@v4.3.0'
@@ -69,7 +69,7 @@ workflows:
6969
- 'actions/github-script@v7.1.0'
7070
- 'actions/setup-node@v4.4.0'
7171
- 'actions/upload-artifact@v4.6.2'
72-
- 'pnpm/action-setup@v4.3.0'
72+
- 'pnpm/action-setup@v6.1.0'
7373
- 'ravsamhq/notify-slack-action@1.10.0'
7474
'.github/workflows/pr-title-linter.yml':
7575
- 'actions/checkout@v4.4.0'
@@ -79,7 +79,7 @@ workflows:
7979
- 'actions/github-script@v7.1.0'
8080
- 'actions/setup-node@v4.4.0'
8181
- 'actions/upload-artifact@v4.6.2'
82-
- 'pnpm/action-setup@v4.3.0'
82+
- 'pnpm/action-setup@v6.1.0'
8383
'.github/workflows/release.yml':
8484
- 'actions/cache@v4.3.0'
8585
- 'actions/checkout@v4.4.0'
@@ -88,7 +88,7 @@ workflows:
8888
- 'changesets/action@v1.8.0'
8989
- 'dawidd6/action-download-artifact@v21'
9090
- 'peter-evans/create-or-update-comment@v3.1.0'
91-
- 'pnpm/action-setup@v4.3.0'
91+
- 'pnpm/action-setup@v6.1.0'
9292
- 'slackapi/slack-github-action@v1.27.1'
9393
'.github/workflows/validate-renovate-config.yml':
9494
- 'actions/checkout@v4.4.0'
@@ -102,15 +102,15 @@ workflows:
102102
- 'actions/setup-java@v4.9.1'
103103
- 'actions/setup-node@v4.4.0'
104104
- 'actions/upload-artifact@v4.6.2'
105-
- 'pnpm/action-setup@v4.3.0'
105+
- 'pnpm/action-setup@v6.1.0'
106106
- 'slackapi/slack-github-action@v1.27.1'
107107
'.github/workflows/verify-remote.yml':
108108
- 'actions/checkout@v4.4.0'
109109
- 'actions/setup-java@v4.9.1'
110110
- 'actions/setup-node@v4.4.0'
111111
- 'actions/upload-artifact@v4.6.2'
112112
- 'gradle/actions@v6.3.0'
113-
- 'pnpm/action-setup@v4.3.0'
113+
- 'pnpm/action-setup@v6.1.0'
114114
dependencies:
115115
'actions-cool/check-user-permission@v2.4.0':
116116
ref: 'v2.4.0'
@@ -220,9 +220,9 @@ dependencies:
220220
commit: 'sha1-23ff15729ef2fc348714a3bb66d2f655ca9066f2'
221221
owner_id: 18365890
222222
repo_id: 223708643
223-
'pnpm/action-setup@v4.3.0':
224-
ref: 'v4.3.0'
225-
commit: 'sha1-b906affcce14559ad1aafd4ab0e942779e9f58b1'
223+
'pnpm/action-setup@v6.1.0':
224+
ref: 'v6.1.0'
225+
commit: 'sha1-ea17c68df8912ef543352723c149a84f56e3d413'
226226
owner_id: 21320719
227227
repo_id: 262289747
228228
'ravsamhq/notify-slack-action@1.10.0':

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,17 +367,13 @@ jobs:
367367
echo "Running tests: ${{ matrix.filter-label }}"
368368
pnpm turbo test $TURBO_ARGS ${{ matrix.test-filter }}
369369
fi
370-
env:
371-
NODE_VERSION: ${{ matrix.node-version }}
372370
373371
- name: Run Typedoc tests
374372
run: |
375373
# Only run Typedoc tests for one matrix version and main test run
376374
if [ "${{ matrix.node-version }}" == "24.15.0" ] && [ "${{ matrix.test-filter }}" = "**" ]; then
377375
pnpm turbo run //#test:typedoc
378376
fi
379-
env:
380-
NODE_VERSION: ${{ matrix.node-version }}
381377
382378
- name: Run verify script tests
383379
if: matrix.node-version == '24.15.0'
@@ -637,21 +633,20 @@ jobs:
637633
- name: Publish to local registry
638634
run: pkglab pub --force
639635

640-
- name: Edit .npmrc [link-workspace-packages=false]
641-
run: sed -i -E 's/link-workspace-packages=(deep|true)/link-workspace-packages=false/' .npmrc
642-
643636
- name: Install @clerk/clerk-js in os temp
644637
working-directory: ${{runner.temp}}
645638
run: |
646639
mkdir clerk-js && cd clerk-js
647640
pnpm init
641+
pnpm install --lockfile-only --ignore-scripts --no-frozen-lockfile
648642
pkglab add @clerk/clerk-js
649643
650644
- name: Install @clerk/ui in os temp
651645
working-directory: ${{runner.temp}}
652646
run: |
653647
mkdir clerk-ui && cd clerk-ui
654648
pnpm init
649+
pnpm install --lockfile-only --ignore-scripts --no-frozen-lockfile
655650
pkglab add @clerk/ui
656651
657652
- name: Copy components @clerk/astro

‎.github/workflows/e2e-staging.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,13 @@ jobs:
227227
if: ${{ steps.inputs.outputs.sdk-source == 'ref' }}
228228
run: pkglab pub --force
229229

230-
- name: Edit .npmrc [link-workspace-packages=false]
231-
if: ${{ steps.inputs.outputs.sdk-source == 'ref' }}
232-
run: sed -i -E 's/link-workspace-packages=(deep|true)/link-workspace-packages=false/' .npmrc
233-
234230
- name: Install @clerk/clerk-js from local registry
235231
if: ${{ steps.inputs.outputs.sdk-source == 'ref' }}
236232
working-directory: ${{ runner.temp }}
237233
run: |
238234
mkdir clerk-js && cd clerk-js
239235
pnpm init
236+
pnpm install --lockfile-only --ignore-scripts --no-frozen-lockfile
240237
pkglab add @clerk/clerk-js
241238
242239
- name: Install @clerk/ui from local registry
@@ -245,6 +242,7 @@ jobs:
245242
run: |
246243
mkdir clerk-ui && cd clerk-ui
247244
pnpm init
245+
pnpm install --lockfile-only --ignore-scripts --no-frozen-lockfile
248246
pkglab add @clerk/ui
249247
250248
# --- SDK from npm: install @latest published versions ---

‎.github/workflows/electron-passkeys.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
node-version: 24
4141

42-
- uses: pnpm/action-setup@v4.3.0
42+
- uses: pnpm/action-setup@v6.1.0
4343

4444
- uses: dtolnay/rust-toolchain@v1
4545
with:
@@ -84,7 +84,7 @@ jobs:
8484
with:
8585
node-version: 24
8686

87-
- uses: pnpm/action-setup@v4.3.0
87+
- uses: pnpm/action-setup@v6.1.0
8888

8989
- name: Install dependencies
9090
run: pnpm install --filter @clerk/electron-passkeys... --frozen-lockfile --ignore-scripts

‎.github/workflows/expo-native-build.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
run: |
6363
build_hash="$(
6464
git ls-files -s -- \
65-
.npmrc \
6665
package.json \
6766
pnpm-lock.yaml \
6867
pnpm-workspace.yaml \
@@ -95,7 +94,7 @@ jobs:
9594
key: expo-native-build-v1-${{ runner.os }}-${{ matrix.expo-sdk }}-${{ matrix.platform }}-${{ steps.native-build-key.outputs.hash }}
9695

9796
- if: steps.native-build-cache.outputs.cache-hit != 'true'
98-
uses: pnpm/action-setup@v4.3.0
97+
uses: pnpm/action-setup@v6.1.0
9998
- if: steps.native-build-cache.outputs.cache-hit != 'true'
10099
uses: actions/setup-node@v4.4.0
101100
with:

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
env:
127127
GITHUB_TOKEN: ${{ secrets.CLERK_COOKIE_PAT }}
128128
HUSKY: "0"
129-
NPM_CONFIG_PROVENANCE: true
129+
PNPM_CONFIG_PROVENANCE: true
130130

131131
- name: Trigger workflows on related repos
132132
if: steps.changesets.outputs.published == 'true'
@@ -388,7 +388,7 @@ jobs:
388388
if: steps.version-packages.outputs.success == '1'
389389
run: pnpm release:canary
390390
env:
391-
NPM_CONFIG_PROVENANCE: true
391+
PNPM_CONFIG_PROVENANCE: true
392392

393393
- name: Trigger workflows on related repos
394394
if: steps.publish.outcome == 'success'
@@ -608,7 +608,7 @@ jobs:
608608
if: steps.version-packages.outputs.success == '1'
609609
run: pnpm release:snapshot
610610
env:
611-
NPM_CONFIG_PROVENANCE: true
611+
PNPM_CONFIG_PROVENANCE: true
612612

613613
- name: Package info
614614
if: steps.version-packages.outputs.success == '1'

‎.github/workflows/verify-e2e.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
persist-credentials: false
4646

47-
- uses: pnpm/action-setup@v4.3.0
47+
- uses: pnpm/action-setup@v6.1.0
4848

4949
- uses: actions/setup-node@v4.4.0
5050
with:

0 commit comments

Comments
 (0)