Skip to content

Commit 5a9d720

Browse files
committed
add core publication flow
1 parent 4acb544 commit 5a9d720

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/publish-core.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Core to npm
2+
on:
3+
push:
4+
tags:
5+
- "core-v*"
6+
permissions:
7+
contents: read
8+
id-token: write
9+
jobs:
10+
publish-core:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: pnpm/action-setup@v4
18+
with:
19+
version: 9
20+
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: "20"
24+
registry-url: "https://registry.npmjs.org"
25+
cache: "pnpm"
26+
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Build core package
31+
run: pnpm --filter=@flow-scanner/lightning-flow-scanner-core run build
32+
33+
- name: Publish core to npm (trusted publishing)
34+
run: cd packages/core/out && npm publish --access public --provenance

0 commit comments

Comments
 (0)