Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/pkg-pr-new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Preview to pkg.pr.new

permissions:
contents: read
pull-requests: write # Required for pkg.pr.new to comment on PRs

on:
pull_request:
types: [opened, synchronize, reopened]


jobs:
publish-preview:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: "npm"

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: npm ci

- name: Build packages
run: npm run build

- name: Resolve workspace dependencies
run: npx tsx .github/resolve-workspace-versions.ts

- name: Publish to pkg.pr.new
run: npx pkg-pr-new publish './packages/sandbox'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modify this workflow to also include the docker publish, so that preview packages also come with a corresponding image that can be used for testing.

Loading
Loading