Skip to content

Commit 08825b1

Browse files
committed
ci: add pkg.pr.new
1 parent 5ad7e53 commit 08825b1

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,19 @@ jobs:
3030
- run: pnpm build
3131
- run: pnpm vitest --coverage
3232
# - uses: codecov/codecov-action@v3
33-
- run: pnpm dlx pkg-pr-new publish
34-
if: ${{ matrix.os == 'ubuntu-latest' }}
33+
34+
publish-pkg-pr-new:
35+
runs-on: ubuntu-latest
36+
timeout-minutes: 10
37+
steps:
38+
- uses: actions/checkout@v6
39+
with: { fetch-depth: 0 }
40+
- run: npm i -fg corepack && corepack enable
41+
- uses: actions/setup-node@v6
42+
with: { node-version: lts/*, cache: "pnpm" }
43+
- run: pnpm install
44+
- run: pnpm build
45+
- run: pnpm dlx pkg-pr-new publish || true
3546

3647
publish:
3748
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)