Skip to content

Commit b2895fd

Browse files
committed
update script
1 parent 9b635a7 commit b2895fd

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

.github/workflows/publish-core.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
1-
name: Publish to npm
2-
1+
name: Publish Core to npm
32
on:
43
push:
54
tags:
6-
- "core-v*"
7-
5+
- "core-v*" # Use core-v1.0.0 for core releases
86
permissions:
97
contents: read
108
id-token: write
11-
9+
security-events: write
1210
jobs:
13-
publish:
11+
publish-core:
1412
runs-on: ubuntu-latest
15-
1613
steps:
1714
- uses: actions/checkout@v4
1815
with:
1916
fetch-depth: 0
20-
17+
18+
- uses: pnpm/action-setup@v4
19+
2120
- uses: actions/setup-node@v4
2221
with:
23-
node-version: 20
22+
node-version: "20"
2423
registry-url: "https://registry.npmjs.org"
25-
26-
- name: Update npm
27-
run: npm install -g npm@latest
28-
24+
cache: "pnpm"
25+
2926
- name: Install dependencies
30-
run: npm ci
31-
32-
- name: Build
33-
run: npm run build
34-
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Build core package
30+
run: pnpm --filter=@flow-scanner/lightning-flow-scanner-core run build
31+
3532
- name: Publish
3633
working-directory: packages/core
37-
run: npm publish --provenance --access public
34+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)