Skip to content

Conversation

@neSpecc
Copy link
Member

@neSpecc neSpecc commented Feb 8, 2026

Move the inline publish job from .github/workflows/main.yml into a reusable workflow .github/workflows/publish.yml and replace the original steps with a workflow_call reference. The new publish workflow detects changed packages (packages/utils and packages/github) with dorny/paths-filter, installs/builds only once, and conditionally publishes and notifies only the packages that changed. Also updates actions versions (checkout/setup-node) and exposes published package versions for notification.

Move the inline publish job from .github/workflows/main.yml into a reusable workflow .github/workflows/publish.yml and replace the original steps with a workflow_call reference. The new publish workflow detects changed packages (packages/utils and packages/github) with dorny/paths-filter, installs/builds only once, and conditionally publishes and notifies only the packages that changed. Also updates actions versions (checkout/setup-node) and exposes published package versions for notification.
Remove the inline publish job from the main CI workflow and convert the publish workflow into a separate workflow_run that triggers when the CI workflow completes on the main branch. Add a guard to run only on successful CI runs, use the workflow_run head_sha for checkout, and simplify the paths-filter base to HEAD^. These changes decouple publishing from the main CI job and ensure the publish workflow runs against the exact commit that finished the CI.
@neSpecc neSpecc merged commit ce16661 into main Feb 8, 2026
1 check 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