Skip to content

Commit 09bd6cc

Browse files
committed
ci: publish branch previews to pkg.pr.new
1 parent 60662a0 commit 09bd6cc

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,10 @@ jobs:
7373
7474
- run: pnpm build
7575

76+
# Branches and pull requests get a preview release from pkg.pr.new
77+
# instead of npm. https://pkg.pr.new
78+
- if: github.ref != 'refs/heads/main'
79+
run: pnpm exec pkg-pr-new publish
80+
7681
- if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'no_release')
7782
run: pnpm publish --no-git-checks --tag ${{ env.version_tag }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@types/node": "^24.10.1",
5858
"bun-plugin-dts": "^0.3.0",
5959
"eslint": "^9.39.1",
60+
"pkg-pr-new": "^0.0.87",
6061
"semver": "^7.7.3",
6162
"tsup": "^8.5.1",
6263
"typed-emitter": "^2.1.0",

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)