Skip to content

Commit

Permalink
ci: add pkr.pr.new (#2747)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 committed Sep 6, 2024
1 parent df80a5e commit 4f5303f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Any Commit

on:
pull_request:
branches: v2
paths-ignore:
- 'packages/docs/**'
- 'packages/playground/**'

push:
branches:
- '**'
tags:
- '!**'
paths-ignore:
- 'packages/docs/**'
- 'packages/playground/**'

jobs:
build:
runs-on: ubuntu-latest

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

- run: corepack enable

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Install
run: pnpm install

- name: Build
run: pnpm build

- name: Release
run: pnpm dlx pkg-pr-new publish --compact --pnpm './packages/*'

0 comments on commit 4f5303f

Please sign in to comment.