From b86121497102843b22e3621de6fb055620a8c605 Mon Sep 17 00:00:00 2001 From: b-yogesh Date: Tue, 14 Jan 2025 17:11:01 +0100 Subject: [PATCH 1/2] Update frontend-ci.yml --- .github/workflows/frontend-ci.yml | 56 ++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index 4b15920f..47d60e46 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -49,25 +49,41 @@ jobs: npm-tests-demo: runs-on: ubuntu-latest - needs: npm-tests-lib - strategy: - matrix: - node-version: [18.x, 20.x] - # See supported Node.js release schedule at - # https://nodejs.org/en/about/releases/ - defaults: - run: - working-directory: chartlets.js/packages/demo - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: git-checkout chartlets + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: chartlets.js/package-lock.json - - - run: npm ci - - run: npm run lint - - run: npm run build + node-version: '20.x' + + - name: Install common dependencies + run: | + cd chartlets.js + npm install + + - name: Lib lint + run: | + cd chartlets.js/packages/lib + npm run lint + + - name: Lib tests + run: | + cd chartlets.js/packages/lib + npm run test + + - name: Lib build + run: | + cd chartlets.js/packages/lib + npm run build + + - name: Demo lint + run: | + cd chartlets.js/packages/demo + npm run lint + + - name: Demo build + run: | + cd chartlets.js/packages/demo + npm run build From 5c78569ad0a4e74c03a60ea13a0903387377796c Mon Sep 17 00:00:00 2001 From: b-yogesh Date: Tue, 14 Jan 2025 17:13:05 +0100 Subject: [PATCH 2/2] Update publish-frontend.yml --- .github/workflows/publish-frontend.yml | 56 +++++++++++++++++--------- 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/.github/workflows/publish-frontend.yml b/.github/workflows/publish-frontend.yml index c090a493..ab6faecf 100644 --- a/.github/workflows/publish-frontend.yml +++ b/.github/workflows/publish-frontend.yml @@ -44,28 +44,44 @@ jobs: npm-tests-demo: runs-on: ubuntu-latest - needs: npm-tests-lib - strategy: - matrix: - node-version: [18.x, 20.x] - # See supported Node.js release schedule at - # https://nodejs.org/en/about/releases/ - defaults: - run: - working-directory: chartlets.js/packages/demo - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: git-checkout chartlets + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: chartlets.js/package-lock.json - - - run: npm ci - - run: npm run lint - - run: npm run build + node-version: '20.x' + + - name: Install common dependencies + run: | + cd chartlets.js + npm install + + - name: Lib lint + run: | + cd chartlets.js/packages/lib + npm run lint + + - name: Lib tests + run: | + cd chartlets.js/packages/lib + npm run test + + - name: Lib build + run: | + cd chartlets.js/packages/lib + npm run build + + - name: Demo lint + run: | + cd chartlets.js/packages/demo + npm run lint + + - name: Demo build + run: | + cd chartlets.js/packages/demo + npm run build npm-deploy: name: Publish TS-React Package to npmjs