Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add lifecycle hooks for publish #656

Merged
merged 5 commits into from
Mar 11, 2024
Merged

feat: Add lifecycle hooks for publish #656

merged 5 commits into from
Mar 11, 2024

Conversation

spydon
Copy link
Collaborator

@spydon spydon commented Mar 10, 2024

Description

This PR adds lifecycle hooks (pre and post) to the publish command.
It runs pre once before publishing runs and post once afterwards (even though several packages might be published).

It also runs in --dry-run mode, to better emulate a real publish.
The environment variable MELOS_PUBLISH_DRY_RUN is introduced so that the user can know whether it is in dry-run mode or not in the scripts.

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)

@spydon spydon changed the title feat: Add lifecycle hooks for publish feat: Add lifecycle hooks for publish Mar 10, 2024
@spydon spydon requested a review from Salakar March 10, 2024 22:02
@spydon spydon merged commit ed826b3 into main Mar 11, 2024
10 checks passed
@spydon spydon deleted the feat/publish-hooks branch March 11, 2024 15:09
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.

None yet

2 participants