Skip to content

Commit ea81ac4

Browse files
authored
ci: fix pkg-pr-new usage (#4889)
- Add [`pkg-pr-new`](https://github.com/stackblitz-labs/pkg.pr.new) as a local dev dependency, as recommended in its documentation - Run [`pkg-pr-new`](https://github.com/stackblitz-labs/pkg.pr.new) via `yarn run --binaries-only --top-level` instead of `yarn dlx` - Add the `--commentWithSha` flag - Bump `actions/checkout` from `v6.0.3` to `v7.0.0`
1 parent 12ee227 commit ea81ac4

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/release-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
18+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1919

2020
- run: corepack enable
2121

@@ -35,6 +35,6 @@ jobs:
3535
- name: Publish
3636
id: publish
3737
run: >
38-
yarn dlx pkg-pr-new publish
38+
yarn run --binaries-only --top-level pkg-pr-new publish
3939
.
40-
--yarn --packageManager="npm,yarn,pnpm,bun" --commentWithDev
40+
--yarn --packageManager="npm,yarn,pnpm,bun" --commentWithDev --commentWithSha

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"eslint-plugin-react-hooks": "^4.6.0",
7272
"glob": "^10.3.10",
7373
"netlify-plugin-cache": "^1.0.3",
74+
"pkg-pr-new": "^0.0.75",
7475
"prettier": "^3.2.5",
7576
"rimraf": "^5.0.5",
7677
"rxjs": "^7.8.1",

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6274,6 +6274,15 @@ __metadata:
62746274
languageName: node
62756275
linkType: hard
62766276

6277+
"pkg-pr-new@npm:^0.0.75":
6278+
version: 0.0.75
6279+
resolution: "pkg-pr-new@npm:0.0.75"
6280+
bin:
6281+
pkg-pr-new: bin/cli.js
6282+
checksum: 10/5160a67a955a50a5842cc43a5143e16f15e48bd5beaf6368ee4f3c532fd79e8ba703ffffd9479945b7ed52f65ce11990e2e24c96b6efd7dd30a326236721bd90
6283+
languageName: node
6284+
linkType: hard
6285+
62776286
"possible-typed-array-names@npm:^1.0.0":
62786287
version: 1.1.0
62796288
resolution: "possible-typed-array-names@npm:1.1.0"
@@ -6405,6 +6414,7 @@ __metadata:
64056414
eslint-plugin-react-hooks: "npm:^4.6.0"
64066415
glob: "npm:^10.3.10"
64076416
netlify-plugin-cache: "npm:^1.0.3"
6417+
pkg-pr-new: "npm:^0.0.75"
64086418
prettier: "npm:^3.2.5"
64096419
rimraf: "npm:^5.0.5"
64106420
rxjs: "npm:^7.8.1"

0 commit comments

Comments
 (0)