Skip to content

Commit d27ac20

Browse files
committed
ci: init preview.yml
1 parent 7781d06 commit d27ac20

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/preview.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Any Commit
2+
on: [pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
10+
with:
11+
fetch-depth: 0
12+
13+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
14+
15+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
16+
with:
17+
node-version: 22.x
18+
registry-url: 'https://registry.npmjs.org'
19+
cache: pnpm
20+
21+
- name: Install
22+
run: pnpm install
23+
24+
- name: Build
25+
run: pnpm build
26+
27+
- run: pnpm dlx pkg-pr-new publish

0 commit comments

Comments
 (0)