Skip to content

Commit 7f7982d

Browse files
authored
ci: add pkr.pr.new (#579)
1 parent f0feff7 commit 7f7982d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

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

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

0 commit comments

Comments
 (0)