Skip to content

Commit e12f554

Browse files
committed
update action
1 parent b844390 commit e12f554

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

.github/workflows/publish-core.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
1-
name: Publish Core to npm
1+
name: Publish to npm
2+
23
on:
34
push:
45
tags:
5-
- "core-v*" # Use core-v1.0.0 for core releases
6+
- "v*"
7+
68
permissions:
79
contents: read
810
id-token: write
9-
security-events: write
11+
1012
jobs:
11-
publish-core:
13+
publish:
1214
runs-on: ubuntu-latest
15+
1316
steps:
1417
- uses: actions/checkout@v4
1518
with:
1619
fetch-depth: 0
17-
18-
- uses: pnpm/action-setup@v4
19-
20+
2021
- uses: actions/setup-node@v4
2122
with:
22-
node-version: "20"
23+
node-version: 20
2324
registry-url: "https://registry.npmjs.org"
24-
cache: "pnpm"
25-
25+
26+
- name: Update npm
27+
run: npm install -g npm@latest
28+
2629
- name: Install dependencies
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-
32-
- name: Publish core to npm (trusted publishing)
33-
run: cd packages/core/out && npm publish --access public --provenance
30+
run: npm ci
31+
32+
- name: Build
33+
run: npm run build
34+
35+
- name: Publish
36+
working-directory: packages/core
37+
run: npm publish --provenance --access public

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"types": "./out/index.d.ts"
1111
}
1212
},
13+
"files": ["out", "README.md", "LICENSE.md"],
1314
"engines": {
1415
"node": "^18 || ^20 || ^22 || ^23"
1516
},

0 commit comments

Comments
 (0)