Skip to content

Commit 68777d8

Browse files
committedOct 20, 2024
feat: pkr-pr-new github action #94
1 parent a8bb380 commit 68777d8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
 

‎.github/workflows/pkg-pr.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Any Commit
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
tags:
8+
- '!**'
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Enable Corepack
20+
run: corepack enable
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: "pnpm"
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Build
32+
run: pnpm prepack
33+
34+
- name: Publish
35+
run: pnpx pkg-pr-new publish

0 commit comments

Comments
 (0)
Please sign in to comment.