Skip to content

Commit

Permalink
chore: fix Playroom deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkaaa committed Jan 24, 2025
1 parent ea6d2cc commit 16af371
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
yarn tokens build
yarn tailwind-preset build
yarn components build
yarn components build:playroom
yarn components build:storybook
- name: Dry run
if: ${{ github.event.inputs.dryrun == 'true' }}
Expand Down Expand Up @@ -75,6 +73,12 @@ jobs:
git add docs/src/data/log.md && git commit -m "docs: update changelog" && git push
yarn zx scripts/post-changelog.mjs
- name: Build Playroom
run: yarn components build:playroom

- name: Build Storybook
run: yarn components build:storybook

- name: Get tag version
run: |
git fetch --tags --quiet
Expand Down
4 changes: 2 additions & 2 deletions scripts/post-changelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ 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(".", "-");
return `**Playroom for ${releaseVersion} is available [here](https://kiwicom-orbit-v${releaseVersion}.surge.sh)** 🕹️ \n`;
const releaseVersion = latestTag.split("@").pop();
return `**Playroom for ${releaseVersion} is available [here](https://kiwicom-orbit-v${releaseVersion.replaceAll(".", "-")}.surge.sh)** 🕹️ \n`;
};

async function publishChangelog(package_) {
Expand Down

0 comments on commit 16af371

Please sign in to comment.