Skip to content

Commit 1c24e07

Browse files
authored
chore: add pkg.pr.new (#886)
* chore: add pkg.pr.new * chore: rename job * fix: package skipped * fix: publish packages
1 parent 92c7cce commit 1c24e07

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
jobs:
5+
auto-publish:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
cache: "pnpm"
16+
17+
- name: Install dependencies
18+
run: pnpm install
19+
20+
- name: Build
21+
run: pnpm build
22+
23+
- run: pnpx pkg-pr-new publish './packages/*'

packages/vue-virtual-scroller/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,8 @@
6565
"> 1%",
6666
"last 2 versions",
6767
"not ie <= 8"
68-
]
68+
],
69+
"publishConfig": {
70+
"access": "public"
71+
}
6972
}

0 commit comments

Comments
 (0)