From 0a5ad05d27171d589aafdf49bebad8562f2ed068 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Mon, 9 Dec 2024 17:25:17 +0100 Subject: [PATCH] Restrict npm-package workflow trigger branches. Update the npm-package workflow condition to trigger only on 'push' events for branches 'main', branches containing 'NP-', or branch '5.10'. This ensures the workflow runs only for relevant branches, enhancing efficiency and control over the deployment process. NP-637 --- .github/workflows/package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index a8bcda3190..3cf8d6b2d0 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -47,7 +47,7 @@ jobs: npm-package: needs: [ conan-package ] - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || contains(github.ref_name, 'NP-') || github.ref_name == '5.10') }} uses: ultimaker/cura-workflows/.github/workflows/npm-package.yml@NP-637_conan_v2_wasm with: package_version_full: ${{ needs.conan-package.outputs.package_version_full }}