Skip to content

Commit 802b0f8

Browse files
committed
ci: continuous release
1 parent 3df241f commit 802b0f8

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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@v4
11+
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: lts/*
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

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20-
- name: Install pnpm
21-
uses: pnpm/action-setup@v2
20+
- run: corepack enable
2221

2322
- name: Set node
2423
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)