Skip to content

Commit a4d129a

Browse files
committed
chore(ci): use shared preview workflow
1 parent 5c84056 commit a4d129a

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

.github/workflows/preview.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
11
name: Preview
2-
on: [push, pull_request]
32

4-
jobs:
5-
build:
6-
if: github.repository == 'bombshell-dev/clack'
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v4
12-
13-
- name: Install pnpm
14-
uses: pnpm/action-setup@v4
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
157

16-
- name: Setup Node
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version: 20
20-
registry-url: https://registry.npmjs.org/
21-
cache: "pnpm"
22-
23-
- name: Install dependencies
24-
run: pnpm install
25-
26-
- run: pnpx pkg-pr-new publish './packages/*' --template './examples/*'
8+
jobs:
9+
format:
10+
if: github.repository_owner == 'bombshell-dev'
11+
uses: bombshell-dev/automation/.github/workflows/preview.yml@main
12+
secrets: inherit
13+
with:
14+
publish: "./packages/*"
15+
template: "./examples/*"

0 commit comments

Comments
 (0)