File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments