Skip to content

Commit f5dc1ed

Browse files
committed
feat: pkg-pr-new
1 parent d68ebef commit f5dc1ed

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/pkg-pr-new.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Any Commit
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
pull_request:
7+
branches:
8+
- "**"
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [18]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 9.1.0
24+
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: "pnpm"
30+
31+
- name: Install dependencies
32+
run: pnpm install --frozen-lockfile --strict-peer-dependencies=false
33+
34+
- name: Build
35+
run: |
36+
cd packages/scan
37+
NODE_ENV=production pnpm build
38+
env:
39+
NODE_ENV: production
40+
41+
- name: Publish NPM Package to pkg-pr-new
42+
run: pnpx pkg-pr-new publish ./packages/scan
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)