Skip to content

Commit 9e638d1

Browse files
committed
ci: use pkg-pr-new
1 parent a6efba4 commit 9e638d1

File tree

1 file changed

+12
-27
lines changed

1 file changed

+12
-27
lines changed

.github/workflows/ci.yml

+12-27
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,21 @@
1-
name: Publish nuxt-component-meta (Nightly)
1+
name: ci
22
on:
33
push:
44
branches:
55
- main
6+
pull_request:
7+
branches:
8+
- main
69
jobs:
710
nightly:
8-
strategy:
9-
matrix:
10-
os: [ubuntu-latest]
11-
node: [20]
12-
13-
runs-on: ${{ matrix.os }}
14-
permissions:
15-
id-token: write
11+
runs-on: ubuntu-latest
1612
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4 # v4
19-
- name: Add pnpm
20-
run: corepack enable
13+
- uses: actions/checkout@v4
2114
- uses: actions/setup-node@v4
2215
with:
23-
node-version: 20
24-
registry-url: "https://registry.npmjs.org/"
25-
cache: "pnpm"
26-
- name: Install dependencies
27-
run: pnpm install
28-
- name: Prepare
29-
run: pnpm dev:prepare
30-
- name: Test
31-
run: pnpm test
32-
- name: Release Nightly
33-
run: pnpm changelogen --bump --canary --publish --publishTag nightly
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
36-
NPM_CONFIG_PROVENANCE: true
16+
node-version: '20'
17+
- run: corepack enable
18+
- run: pnpm install
19+
- run: pnpm dev:prepare
20+
- run: pnpm test
21+
- run: pnpx pkg-pr-new publish --compact --no-template --pnpm

0 commit comments

Comments
 (0)