Skip to content

feat: new args system (#7) #62

feat: new args system (#7)

feat: new args system (#7) #62

Workflow file for this run

name: Preview Any Commit
on:
pull_request:
push:
branches:
- "main"
tags:
- "!**" # excludes all tags
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install deps
run: bun install
- name: Publish preview
run: bunx pkg-pr-new publish --packageManager=bun --json output.json --comment=off
- name: Post or update comment
uses: actions/github-script@v7
with:
script: |
const { run } = await import('${{ github.workspace }}/.github/scripts/preview-comment.js')
await run(github, context, core)