diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eea4bb95d..24735bceb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: lint run: yarn lint - name: type check - run: yarn build && yarn typecheck + run: yarn typecheck - name: unit test run: yarn test diff --git a/nx.json b/nx.json index 2d20da4d5f..405cae9038 100644 --- a/nx.json +++ b/nx.json @@ -10,6 +10,9 @@ "targetDefaults": { "build": { "outputs": ["{projectRoot}/dist"] + }, + "typecheck": { + "dependsOn": ["^build"] } } }