Skip to content

Commit 71a56e4

Browse files
committed
fix: use built-in pnpm support in pkg-pr-new
Replace custom publishConfig expansion and manual build step with the built-in --pnpm flag in pkg-pr-new, simplifying the workflow and reducing potential errors. stackblitz-labs/pkg.pr.new#204
1 parent e50c76c commit 71a56e4

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/build-and-publish-dry-run.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,4 @@ jobs:
1010
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1111
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
1212
- run: pnpm install --frozen-lockfile
13-
- run: pnpm run build:packages
14-
- name: expand publishConfig
15-
shell: bash
16-
run: |
17-
find packages -type f -name "package.json" | while read -r file; do
18-
echo "Processing: $file"
19-
cp "$file" "$file.bak"
20-
jq '. + .publishConfig | del(.publishConfig)' "$file" > "${file}.tmp" && mv "${file}.tmp" "$file"
21-
rm "$file.bak"
22-
done
23-
- run: pnpm dlx pkg-pr-new publish './packages/*'
13+
- run: pnpm dlx pkg-pr-new publish --pnpm './packages/*'

0 commit comments

Comments
 (0)