Skip to content

fix: detect changes correctly when pushing tags#58

Merged
Kamilbenkirane merged 1 commit intomainfrom
fix/publish-workflow-tag-detection
Dec 5, 2025
Merged

fix: detect changes correctly when pushing tags#58
Kamilbenkirane merged 1 commit intomainfrom
fix/publish-workflow-tag-detection

Conversation

@Kamilbenkirane
Copy link
Copy Markdown
Member

Problem

When pushing a tag, the publish workflow was skipping integration tests and publish jobs because github.event.before is empty for tag push events. This caused the detect-changes job to fail to detect any changes.

Solution

  • Added a get-base step that finds the previous tag using git describe --tags --abbrev=0 HEAD^
  • Updated paths-filter to use the previous tag as the base instead of github.event.before
  • Added handling for first release (no previous tag) by running all packages
  • Ensures integration tests and publish jobs run correctly for tag-based releases

Testing

This fix ensures that when a tag is pushed:

  • Changes are correctly detected by comparing against the previous tag
  • Integration tests run for changed packages
  • Publish jobs execute successfully

Fix the publish workflow to properly detect changes when pushing tags.
Tag pushes don't have github.event.before, so we now compare against
the previous tag instead. This ensures integration tests and publish
jobs run correctly for tag-based releases.
@Kamilbenkirane Kamilbenkirane merged commit a244208 into main Dec 5, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant