From 931f2a1107e8b5f9d00fc44b299781436a3126f6 Mon Sep 17 00:00:00 2001 From: Omer van Kloeten Date: Sun, 25 Feb 2024 22:17:15 +0200 Subject: [PATCH] Create an all-in-one build script in package.json and use that in the GitHub Action --- .github/workflows/build.yml | 3 --- package.json | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 64526bf..e735e21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,8 +27,5 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - - run: npm run generate --workspace=@gamgee/design - - run: npm run build --workspace=@gamgee/design - - run: npm run generate - run: npm run build - run: npm test diff --git a/package.json b/package.json index 4d136bb..4dbaba5 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,8 @@ "description": "An embedded durable execution engine for TypeScript", "main": "index.ts", "scripts": { - "build": "npm run build --workspaces", + "build": "npm run generate --workspace=@gamgee/design && npm run build --workspace=@gamgee/design && npm run generate --workspaces --if-present && npm run build --workspaces", "test": "npm run test --workspaces --if-present", - "generate": "npm run generate --workspaces --if-present", "lint": "npm run lint --workspaces" }, "author": "Omer van Kloeten",