From 9bc43a4405193fd3d07dbb42203916da00d84fc9 Mon Sep 17 00:00:00 2001 From: aidanCQ Date: Mon, 18 Dec 2023 09:36:30 +0000 Subject: [PATCH] Split out lib and storybook build scripts. --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 22 ---------------------- package.json | 3 ++- 3 files changed, 3 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a9e332..d0f4728 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: run: npm ci - name: Build library and storybook - run: npm run build + run: npm run build-lib && npm run build-storybook - name: Setup pages. uses: actions/configure-pages@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 358b5bc..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Test library -on: - pull_request: - branches: - - "main" - paths: - - src/** -jobs: - build_and_test: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install NPM dependencies - run: npm ci - - - name: Test with Jest - run: npm run test - - - name: Build library - run: npm run build diff --git a/package.json b/package.json index 7ac2d88..46be617 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "author": "aidan.keay@quantinuum.com", "scripts": { "dev": "storybook dev -p 6006", - "build": "rm -rf ./build && rollup -c && storybook build" + "build-storybook": "storybook-build", + "build-lib": "rm -rf ./dist && rollup -c" }, "release": { "branches": [