Skip to content

Commit 656866d

Browse files
committed
ci: move pkg.pr.new step to release workflow
1 parent ad00403 commit 656866d

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ jobs:
3232
- run: pnpm lint
3333
- run: pnpm test
3434
- run: pnpm build
35-
- name: publish nightly release
36-
if: github.event_name == 'pull_request'
37-
run: pnpm pkg-pr-new publish --compact
3835
- run: pnpm test:types
3936
- run: pnpm dev:build
4037
- uses: codecov/codecov-action@v5

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,29 @@ on:
88
permissions: {}
99

1010
jobs:
11+
release-pr:
12+
runs-on: ubuntu-latest
13+
if: ${{ github.event_name == 'pull_request' }}
14+
steps:
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- run: corepack enable
17+
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
18+
with:
19+
node-version: 20
20+
cache: "pnpm"
21+
22+
- name: Install dependencies
23+
run: pnpm install
24+
25+
- name: Prepare build environment
26+
run: pnpm dev:prepare
27+
28+
- run: pnpm build
29+
30+
- name: publish nightly release
31+
if: github.event_name == 'pull_request'
32+
run: pnpm pkg-pr-new publish --compact
33+
1134
release:
1235
runs-on: ubuntu-latest
1336
if: ${{ github.repository_owner == 'nuxt' && github.event_name == 'push' }}

0 commit comments

Comments
 (0)