Skip to content

Commit c995640

Browse files
enable pr prereleases via pkg.pr.new (#60)
1 parent 59a1d9e commit c995640

File tree

3 files changed

+330
-13
lines changed

3 files changed

+330
-13
lines changed

.github/workflows/prereleases.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Publish prereleases
2-
on:
3-
push:
4-
branches:
5-
- main
2+
3+
on: pull_request
64

75
jobs:
86
release:
@@ -34,11 +32,5 @@ jobs:
3432
- name: Build
3533
run: pnpm -F cloudflare run build
3634

37-
- name: Update package.json version
38-
run: node .github/utils/update-version.cjs cloudflare
39-
4035
- name: Publish to NPM
41-
run: pnpm publish -F cloudflare --no-git-checks
42-
env:
43-
NODE_ENV: "production"
44-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
36+
run: pnpm exec pkg-pr-new publish --pnpm --compact './packages/cloudflare'

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"version": "0.0.0.0",
44
"private": true,
55
"devDependencies": {
6-
"prettier": "3.3.3",
7-
"@playwright/test": "1.47.0"
6+
"@playwright/test": "1.47.0",
7+
"pkg-pr-new": "^0.0.29",
8+
"prettier": "3.3.3"
89
},
910
"scripts": {
1011
"prettier:check": "prettier --check .",

0 commit comments

Comments
 (0)