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

Fix GitHub Action release script using data from Auto shipIt hook rather than from Git #956

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Mar 19, 2024

This restores the afterShipIt hook to automatically release the GitHub Action after releasing to npm. To prevent the wrong contents from being published, the publish-action script was updated to pull context (canary|next|latest) and package version number from the ARG_0 environment variable provided by Auto, rather than trying to retrieve this info based on the Git branch and repository contents.

Furthermore, some log data was added for easier debugging.

📦 Published PR as canary version: 11.1.2--canary.956.8351878580.0

✨ Test out this PR locally via:

npm install chromatic@11.1.2--canary.956.8351878580.0
# or 
yarn add chromatic@11.1.2--canary.956.8351878580.0

@ghengeveld ghengeveld force-pushed the ghengeveld/ap-4104-github-action-uses-canary-versions-of-the-cli-if-newest branch from 0189373 to 7cb657b Compare March 19, 2024 12:27
Copy link
Member

@thafryer thafryer left a comment

Choose a reason for hiding this comment

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

LGTM

@ghengeveld ghengeveld added release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged skip-release Auto: Preserve the current version when merged and removed release Auto: Create a `latest` release when merged labels Mar 19, 2024
@ghengeveld ghengeveld added this pull request to the merge queue Mar 19, 2024
Merged via the queue into main with commit 3b5a21c Mar 19, 2024
27 of 29 checks passed
@ghengeveld ghengeveld deleted the ghengeveld/ap-4104-github-action-uses-canary-versions-of-the-cli-if-newest branch March 19, 2024 23:41
@ghengeveld
Copy link
Member Author

🚀 PR was released in v11.1.1 🚀

@ghengeveld ghengeveld added the released Verdict: This issue/pull request has been released label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Auto: Increment the patch version when merged released Verdict: This issue/pull request has been released skip-release Auto: Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants