Skip to content

Commit

Permalink
creates package when change is made in conandata.yml/ version
Browse files Browse the repository at this point in the history
NP-732
  • Loading branch information
saumyaj3 committed Feb 12, 2025
1 parent ce71ea2 commit e8136c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'test_package/**'
- 'conanfile.py'
- 'CMakeLists.txt'
- 'conandata.yml'
- 'pyDulcificum/**'
- 'DulcificumJS/**'
- '.github/workflows/package.yml'
Expand All @@ -34,7 +35,8 @@ jobs:

npm-package:
needs: [ conan-package ]
if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'NP-')) }}
# Run the job for: 1) push to 'main' or branches starting with 'NP-', or 2) merged pull requests targeting 'main'.
if: ${{(github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'NP-'))) || (github.event_name == 'pull_request' && github.event.action == 'closed' && github.base_ref == 'main' && github.merge_commit_sha)}}
uses: ultimaker/cura-workflows/.github/workflows/npm-package.yml@main
with:
package_version_full: ${{ needs.conan-package.outputs.package_version_full }}
Expand Down

0 comments on commit e8136c3

Please sign in to comment.