Skip to content

Commit dd27bd9

Browse files
authored
chore: add pkg.pr.new
* add: pkg.pr.new * feat: add step to publish preview package in CI workflow * more testing * fix: branch target * fix: package-json.lock conflicts * testing again * more tests * update: `main.yml`
1 parent ba5c1cf commit dd27bd9

File tree

4 files changed

+816
-294
lines changed

4 files changed

+816
-294
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build & Test
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
77

88
jobs:

.github/workflows/pkg-pr-new.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish Preview Package
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: 'npm'
20+
21+
- name: Install Dependencies
22+
run: npm ci
23+
24+
- name: Build
25+
run: npm run build
26+
27+
- name: Publish Preview Package
28+
run: npx pkg-pr-new publish

0 commit comments

Comments
 (0)