From 446cda7cc8f6c0a9f3f51739b7b1116f7abddba3 Mon Sep 17 00:00:00 2001 From: Emile Rolley Date: Tue, 23 Jul 2024 18:08:55 +0200 Subject: [PATCH] ci: don't run packaging workflow if the buid fails --- .github/workflows/packaging.yaml | 8 ++++---- tsconfig.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/packaging.yaml b/.github/workflows/packaging.yaml index 6a63b99..54266a6 100644 --- a/.github/workflows/packaging.yaml +++ b/.github/workflows/packaging.yaml @@ -3,10 +3,10 @@ name: GitHub release and NPM publishing on: - push: - branches: - - main - pull_request: + workflow_run: + workflows: ['Build, test and check format'] + types: + - completed branches: - main diff --git a/tsconfig.json b/tsconfig.json index 57d0fd0..8d4bac4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,8 +11,8 @@ "types": ["jest", "node"], "declaration": true, "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true, + "allowSyntheticDefaultImports": true }, "include": ["src"], - "exclude": ["./node_modules/", "./dist/", "./jest.config.js", "./test/"], + "exclude": ["./node_modules/", "./dist/", "./jest.config.js", "./test/"] }