This shows `npx` commands instead of `npm i` in PR preview comments, which is more appropriate for this CLI tool. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
27 lines
464 B
YAML
27 lines
464 B
YAML
name: Publish PR to pkg.pr.new
|
|
permissions:
|
|
contents: read
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
tags:
|
|
- '!**'
|
|
|
|
jobs:
|
|
pr-publish:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: npm
|
|
|
|
- run: npm ci
|
|
- name: Build
|
|
run: npm run build
|
|
- name: Publish
|
|
run: npx pkg-pr-new publish --bin
|