Skip to content

Conversation

@iamhyc
Copy link
Member

@iamhyc iamhyc commented Dec 14, 2025

This PR fixes the auto-release github workflow check condition.

Currently, it will always check the last commit repeatedly regardless of the commit date.

In this PR, it will check if there is a commit happened in the last 24 hours and if the package.json file is changed.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the auto-publish GitHub workflow to check for package.json changes in the last 24 hours rather than only in the last commit. This prevents the workflow from repeatedly checking the same commit when no new commits exist.

Key changes:

  • Replaced HEAD~1 diff check with git log --since="24 hours ago" to find recent commits affecting package.json
  • Added logic to handle shallow repositories by attempting to unshallow or fetch more history
  • Updated step name and comments to reflect the new 24-hour check

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@iamhyc iamhyc merged commit 7e2a917 into master Dec 14, 2025
7 checks passed
@iamhyc iamhyc deleted the fix-release-condition branch December 14, 2025 13:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants