Skip to content

Commit

Permalink
ci: add pkg-pr-new
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanzmj committed Oct 9, 2024
1 parent ab5c0f5 commit a6cc1ef
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Any Commit
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

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

- uses: pnpm/[email protected]

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
run: pnpm dlx pkg-pr-new publish --compact

0 comments on commit a6cc1ef

Please sign in to comment.