-
Notifications
You must be signed in to change notification settings - Fork 152
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
chore: fix Playroom deployment #4595
Conversation
Storybook staging is available at https://kiwicom-orbit-sarka-publish-actions-playroom-deployment.surge.sh Playroom staging is available at https://kiwicom-orbit-sarka-publish-actions-playroom-deployment.surge.sh/playroom |
Size Change: +1 B (0%) Total Size: 459 kB
ℹ️ View Unchanged
|
scripts/post-changelog.mjs
Outdated
@@ -100,7 +100,7 @@ const getPlayroomLink = (package_, tags) => { | |||
if (package_ !== "orbit-components") return ""; | |||
|
|||
const latestTag = tags.all.find(tag => tag.includes("@kiwicom/orbit-components@")); | |||
const releaseVersion = latestTag.split("@").pop().replace(".", "-"); | |||
const releaseVersion = latestTag.split("@").pop().replaceAll(".", "-"); | |||
return `**Playroom for ${releaseVersion} is available [here](https://kiwicom-orbit-v${releaseVersion}.surge.sh)** 🕹️ \n`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first releaseVersion
shows up as XX-YY-Z, instead of the normal semantic versioning XX.YY.Z
We could improve this here as well.
.github/workflows/publish.yml
Outdated
VERSION_TAG=$(git tag --list '@kiwicom/orbit-components@*' --sort=creatordate | sed '$!d' | sed -n '$ s|.*@||; s/\./-/gp') | ||
echo "VERSION_TAG=$VERSION_TAG" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed here
3a82146
to
87990c8
Compare
87990c8
to
8d32cb8
Compare
This Pull Request meets the following criteria:
For new components:
d.ts
files and are exported inindex.d.ts
✨
Description by Callstackai
This PR fixes the Playroom deployment by adding build steps for Playroom and Storybook in the GitHub Actions workflow, and updates the Playroom link generation in the changelog script.
Diagrams of code changes
Files Changed
This PR includes files in programming languages that we currently do not support. We have not reviewed files with the extensions
.yml
,.mjs
. See list of supported languages.