Skip to content

Commit 2562a93

Browse files
committed
ci: add preview package workflow
1 parent 46fe18c commit 2562a93

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/preview.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Package Preview
2+
on:
3+
pull_request:
4+
push:
5+
branches-ignore:
6+
- 'main'
7+
tags:
8+
- '!**' # excludes all tags
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup node
17+
uses: actions/setup-node@v4
18+
19+
- name: Install deps
20+
run: npm install
21+
22+
- name: Build package
23+
run: npm run build
24+
25+
- name: Publish preview
26+
run: npx pkg-pr-new publish --compact --comment=update

0 commit comments

Comments
 (0)