From 59fc391ef207ae82f51df5eedf707410bea5bc53 Mon Sep 17 00:00:00 2001 From: elribonazo Date: Sun, 1 Oct 2023 21:35:13 +0200 Subject: [PATCH] fix: CI include new coverage badges. --- .github/workflows/release.yml | 5 +---- release.config.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f48165a..ed4d22aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,12 +31,9 @@ jobs: - name: Install Dependencies run: npm ci # or use "npm install" if you don't have a lock file - - name: Test - run: npm test && npx jest-coverage-badges # adjust this to your project's test command - - name: Semantic Release env: GH_TOKEN: ${{ secrets.PLUTO_GITHUB }} GITHUB_TOKEN: ${{ secrets.PLUTO_GITHUB }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npm run docs -- --hideInPageTOC true --hideBreadcrumbs true && cp -r docs/* . && npx semantic-release + run: npm test && npx jest-coverage-badges && npm run docs -- --hideInPageTOC true --hideBreadcrumbs true && cp -r docs/* . && npx semantic-release diff --git a/release.config.js b/release.config.js index a10cf22e..9d6d8f45 100644 --- a/release.config.js +++ b/release.config.js @@ -14,10 +14,7 @@ export default { { assets: [ "package.json", - "coverage/badge-branches.svg", - "coverage/badge-functions.svg", - "coverage/badge-lines.svg", - "coverage/badge-statements.svg", + "coverage/*.svg", "package-lock.json", "CHANGELOG.md", "README.md",