Skip to content

Commit 3a41b98

Browse files
authored
feat: add pkg.pr.new (#80)
* add pkg.pr.new * cr * fix cr
1 parent 4f77fc7 commit 3a41b98

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/cr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
cache: "pnpm"
17+
18+
- name: Install dependencies
19+
run: pnpm install
20+
21+
- name: Build
22+
run: pnpm build
23+
24+
- run: pnpx pkg-pr-new publish
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)