feat: new args system (#7) #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |