Skip to content

Commit bce6384

Browse files
authored
Fix demo build CI (#99)
* Update frontend-ci.yml * Update publish-frontend.yml
1 parent 2607afb commit bce6384

File tree

2 files changed

+72
-40
lines changed

2 files changed

+72
-40
lines changed

.github/workflows/frontend-ci.yml

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,41 @@ jobs:
4949

5050
npm-tests-demo:
5151
runs-on: ubuntu-latest
52-
needs: npm-tests-lib
53-
strategy:
54-
matrix:
55-
node-version: [18.x, 20.x]
56-
# See supported Node.js release schedule at
57-
# https://nodejs.org/en/about/releases/
58-
defaults:
59-
run:
60-
working-directory: chartlets.js/packages/demo
61-
6252
steps:
63-
- uses: actions/checkout@v3
64-
- name: Use Node.js ${{ matrix.node-version }}
65-
uses: actions/setup-node@v3
53+
- name: git-checkout chartlets
54+
uses: actions/checkout@v4
55+
56+
- name: Set up Node.js
57+
uses: actions/setup-node@v4
6658
with:
67-
node-version: ${{ matrix.node-version }}
68-
cache: 'npm'
69-
cache-dependency-path: chartlets.js/package-lock.json
70-
71-
- run: npm ci
72-
- run: npm run lint
73-
- run: npm run build
59+
node-version: '20.x'
60+
61+
- name: Install common dependencies
62+
run: |
63+
cd chartlets.js
64+
npm install
65+
66+
- name: Lib lint
67+
run: |
68+
cd chartlets.js/packages/lib
69+
npm run lint
70+
71+
- name: Lib tests
72+
run: |
73+
cd chartlets.js/packages/lib
74+
npm run test
75+
76+
- name: Lib build
77+
run: |
78+
cd chartlets.js/packages/lib
79+
npm run build
80+
81+
- name: Demo lint
82+
run: |
83+
cd chartlets.js/packages/demo
84+
npm run lint
85+
86+
- name: Demo build
87+
run: |
88+
cd chartlets.js/packages/demo
89+
npm run build

.github/workflows/publish-frontend.yml

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,44 @@ jobs:
4444

4545
npm-tests-demo:
4646
runs-on: ubuntu-latest
47-
needs: npm-tests-lib
48-
strategy:
49-
matrix:
50-
node-version: [18.x, 20.x]
51-
# See supported Node.js release schedule at
52-
# https://nodejs.org/en/about/releases/
53-
defaults:
54-
run:
55-
working-directory: chartlets.js/packages/demo
56-
5747
steps:
58-
- uses: actions/checkout@v3
59-
- name: Use Node.js ${{ matrix.node-version }}
60-
uses: actions/setup-node@v3
48+
- name: git-checkout chartlets
49+
uses: actions/checkout@v4
50+
51+
- name: Set up Node.js
52+
uses: actions/setup-node@v4
6153
with:
62-
node-version: ${{ matrix.node-version }}
63-
cache: 'npm'
64-
cache-dependency-path: chartlets.js/package-lock.json
65-
66-
- run: npm ci
67-
- run: npm run lint
68-
- run: npm run build
54+
node-version: '20.x'
55+
56+
- name: Install common dependencies
57+
run: |
58+
cd chartlets.js
59+
npm install
60+
61+
- name: Lib lint
62+
run: |
63+
cd chartlets.js/packages/lib
64+
npm run lint
65+
66+
- name: Lib tests
67+
run: |
68+
cd chartlets.js/packages/lib
69+
npm run test
70+
71+
- name: Lib build
72+
run: |
73+
cd chartlets.js/packages/lib
74+
npm run build
75+
76+
- name: Demo lint
77+
run: |
78+
cd chartlets.js/packages/demo
79+
npm run lint
80+
81+
- name: Demo build
82+
run: |
83+
cd chartlets.js/packages/demo
84+
npm run build
6985
7086
npm-deploy:
7187
name: Publish TS-React Package to npmjs

0 commit comments

Comments
 (0)