Skip to content

Commit 4f5303f

Browse files
authored
ci: add pkr.pr.new (#2747)
1 parent df80a5e commit 4f5303f

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/pkg.pr.new.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Any Commit
2+
3+
on:
4+
pull_request:
5+
branches: v2
6+
paths-ignore:
7+
- 'packages/docs/**'
8+
- 'packages/playground/**'
9+
10+
push:
11+
branches:
12+
- '**'
13+
tags:
14+
- '!**'
15+
paths-ignore:
16+
- 'packages/docs/**'
17+
- 'packages/playground/**'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- run: corepack enable
30+
31+
- name: Set node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: lts/*
35+
cache: pnpm
36+
37+
- name: Install
38+
run: pnpm install
39+
40+
- name: Build
41+
run: pnpm build
42+
43+
- name: Release
44+
run: pnpm dlx pkg-pr-new publish --compact --pnpm './packages/*'

0 commit comments

Comments
 (0)