Skip to content

Commit 281ea0c

Browse files
committed
updated ci
1 parent e47d3b3 commit 281ea0c

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

.github/workflows/frontend-ci.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,32 @@ jobs:
1717
with:
1818
node-version: '18.x'
1919

20-
- name: Install dependencies
20+
- name: Install common dependencies
2121
run: |
2222
cd chartlets.js
2323
npm install
2424
25-
- name: Linter
25+
- name: Lib lint
2626
run: |
27-
cd chartlets.js
27+
cd chartlets.js/packages/lib
2828
npm run lint
2929
30-
- name: Run frontend tests
30+
- name: Lib tests
3131
run: |
32-
cd chartlets.js
32+
cd chartlets.js/packages/lib
3333
npm run test
3434
35-
- name: Build frontend application
35+
- name: Lib build
3636
run: |
37-
cd chartlets.js
37+
cd chartlets.js/packages/lib
38+
npm run build
39+
40+
- name: Demo lint
41+
run: |
42+
cd chartlets.js/packages/demo
43+
npm run lint
44+
45+
- name: Demo build
46+
run: |
47+
cd chartlets.js/packages/demo
3848
npm run build

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ jobs:
123123
cache-dependency-path: chartlets.js/package-lock.json
124124

125125
- run: npm ci
126-
- run: npm run build
127-
- run: npm publish --access public
126+
- run: |
127+
cd packages/lib
128+
npm run build
129+
- run: |
130+
cd packages/lib
131+
npm publish --access public
128132
env:
129133
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)