Skip to content

chore: update pkg.pr.new gh action #10

chore: update pkg.pr.new gh action

chore: update pkg.pr.new gh action #10

name: Publish Any Commit
on:
push:
branches:
- main
issue_comment:
types: [created]
jobs:
build:
if: github.repository == 'antfu-collective/ni' && (github.event_name == 'push' || github.event.issue.pull_request && startsWith(github.event.comment.body, '/pkg-pr-new'))
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/[email protected]
- name: Install dependencies
run: pnpm install
- name: Build
working-directory: .
run: pnpm build
- run: pnpm dlx [email protected] publish --compact --pnpm .