Skip to content

Commit 9473fc6

Browse files
committed
ci: switch release to manual trigger and escape JSX in changelogs
- Change release workflow from push-on-master to workflow_dispatch - Escape bare <Component> tags in auto-generated changeset descriptions to prevent MDX parse errors in CHANGELOG.md
1 parent f13eb83 commit 9473fc6

2 files changed

Lines changed: 62 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Release
22

33
on:
4-
push:
5-
branches: [master]
4+
workflow_dispatch:
65

76
concurrency: ${{ github.workflow }}-${{ github.ref }}
87

@@ -91,7 +90,8 @@ jobs:
9190
link="[$short_hash]($REPO_URL/commit/$hash)"
9291
9392
# Strip conventional commit prefix and optional scope for the description
94-
desc=$(echo "$msg" | sed -E 's/^(feat|fix|refactor|chore|docs|style|perf|test|ci|build)(\([^)]*\))?[!]?:\s*//')
93+
# Wrap bare <Component> tags in backticks so MDX doesn't parse them as JSX
94+
desc=$(echo "$msg" | sed -E 's/^(feat|fix|refactor|chore|docs|style|perf|test|ci|build)(\([^)]*\))?[!]?:\s*//' | sed -E 's/<([A-Za-z][A-Za-z0-9]*[^>]*)>/`<\1>`/g')
9595
9696
entry=$(printf '\n* %s (%s)' "$desc" "$link")
9797
case "$msg" in

packages/react/CHANGELOG.md

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- extract @tiny-design/icons package with tree-shakeable SVG icons ([2378f8d](https://github.com/wangdicoder/tiny-design/commit/2378f8d6a63461d59319dc7726b01511087f7781))
1212

1313
### Bug Fixes
14-
- replace deprecated <Icon> with named icon components in demos ([e51fca5](https://github.com/wangdicoder/tiny-design/commit/e51fca58a6bdb167d46b5569557107d513094a51))
14+
- replace deprecated `<Icon>` with named icon components in demos ([e51fca5](https://github.com/wangdicoder/tiny-design/commit/e51fca58a6bdb167d46b5569557107d513094a51))
1515
- resolve @tiny-design/icons from source in docs app ([64e7e7b](https://github.com/wangdicoder/tiny-design/commit/64e7e7bf570df1e4b4f79c305c42966133fb2230))
1616

1717
### Refactors
@@ -38,7 +38,64 @@
3838
- extract @tiny-design/icons package with tree-shakeable SVG icons ([2378f8d](https://github.com/wangdicoder/tiny-design/commit/2378f8d6a63461d59319dc7726b01511087f7781))
3939

4040
### Bug Fixes
41-
- replace deprecated <Icon> with named icon components in demos ([e51fca5](https://github.com/wangdicoder/tiny-design/commit/e51fca58a6bdb167d46b5569557107d513094a51))
41+
- replace deprecated `<Icon>` with named icon components in demos ([e51fca5](https://github.com/wangdicoder/tiny-design/commit/e51fca58a6bdb167d46b5569557107d513094a51))
42+
- resolve @tiny-design/icons from source in docs app ([64e7e7b](https://github.com/wangdicoder/tiny-design/commit/64e7e7bf570df1e4b4f79c305c42966133fb2230))
43+
44+
### Refactors
45+
- move withSpin HOC from icons to react package ([64a835d](https://github.com/wangdicoder/tiny-design/commit/64a835d25a66b2c35cb4d7e83bb301a8f790d2f7))
46+
- move withSpin HOC from icons to react package ([64a835d](https://github.com/wangdicoder/tiny-design/commit/64a835d25a66b2c35cb4d7e83bb301a8f790d2f7))
47+
- consume @tiny-ui/tokens from react package and docs app ([a66e078](https://github.com/wangdicoder/tiny-design/commit/a66e078c727eff465c8a0976e14aafcd7148d245))
48+
- version packages [skip ci] ([0711404](https://github.com/wangdicoder/tiny-design/commit/0711404b706626b1673d9781089d4778a8721b81))
49+
- rename project from tiny-ui to tiny-design ([17dd9ab](https://github.com/wangdicoder/tiny-design/commit/17dd9ab482d61f4327c43762470e583df8cb95f8))
50+
- rename npm scope from @tiny-ui to @tiny-design ([1f7c1bc](https://github.com/wangdicoder/tiny-design/commit/1f7c1bcdb3d1064215567c1a2b7ee504eb823a99))
51+
- add Overlay component documentation and examples ([68f6bdd](https://github.com/wangdicoder/tiny-design/commit/68f6bdd0167adefc9bf37d5217e614aade170592))
52+
- migrate to pnpm monorepo with turborepo ([52e6c47](https://github.com/wangdicoder/tiny-design/commit/52e6c47612fcf0197aec494f4ba5c4508eb17203))
53+
54+
- Updated dependencies []:
55+
- @tiny-design/icons@1.0.11
56+
57+
## 1.0.10
58+
59+
### Patch Changes
60+
61+
- ### Features
62+
- add withSpin HOC for spinning icon variants ([0129863](https://github.com/wangdicoder/tiny-design/commit/01298638adce7d0d59d87e4e2299bc7323cb30a0))
63+
- extract @tiny-design/icons package with tree-shakeable SVG icons ([2378f8d](https://github.com/wangdicoder/tiny-design/commit/2378f8d6a63461d59319dc7726b01511087f7781))
64+
- add withSpin HOC for spinning icon variants ([0129863](https://github.com/wangdicoder/tiny-design/commit/01298638adce7d0d59d87e4e2299bc7323cb30a0))
65+
- extract @tiny-design/icons package with tree-shakeable SVG icons ([2378f8d](https://github.com/wangdicoder/tiny-design/commit/2378f8d6a63461d59319dc7726b01511087f7781))
66+
67+
### Bug Fixes
68+
- replace deprecated `<Icon>` with named icon components in demos ([e51fca5](https://github.com/wangdicoder/tiny-design/commit/e51fca58a6bdb167d46b5569557107d513094a51))
69+
- resolve @tiny-design/icons from source in docs app ([64e7e7b](https://github.com/wangdicoder/tiny-design/commit/64e7e7bf570df1e4b4f79c305c42966133fb2230))
70+
71+
### Refactors
72+
- move withSpin HOC from icons to react package ([64a835d](https://github.com/wangdicoder/tiny-design/commit/64a835d25a66b2c35cb4d7e83bb301a8f790d2f7))
73+
- move withSpin HOC from icons to react package ([64a835d](https://github.com/wangdicoder/tiny-design/commit/64a835d25a66b2c35cb4d7e83bb301a8f790d2f7))
74+
- consume @tiny-ui/tokens from react package and docs app ([a66e078](https://github.com/wangdicoder/tiny-design/commit/a66e078c727eff465c8a0976e14aafcd7148d245))
75+
- version packages [skip ci] ([0711404](https://github.com/wangdicoder/tiny-design/commit/0711404b706626b1673d9781089d4778a8721b81))
76+
- rename project from tiny-ui to tiny-design ([17dd9ab](https://github.com/wangdicoder/tiny-design/commit/17dd9ab482d61f4327c43762470e583df8cb95f8))
77+
- rename npm scope from @tiny-ui to @tiny-design ([1f7c1bc](https://github.com/wangdicoder/tiny-design/commit/1f7c1bcdb3d1064215567c1a2b7ee504eb823a99))
78+
- add Overlay component documentation and examples ([68f6bdd](https://github.com/wangdicoder/tiny-design/commit/68f6bdd0167adefc9bf37d5217e614aade170592))
79+
- migrate to pnpm monorepo with turborepo ([52e6c47](https://github.com/wangdicoder/tiny-design/commit/52e6c47612fcf0197aec494f4ba5c4508eb17203))
80+
81+
- Updated dependencies []:
82+
- @tiny-design/icons@1.0.10
83+
84+
Tiny UI strictly follows [Semantic Versioning 2.0.0](https://semver.org/).
85+
86+
||||||| parent of c39a337 (ci: switch release to manual trigger and escape JSX in changelogs)
87+
## 1.0.11
88+
89+
### Patch Changes
90+
91+
- ### Features
92+
- add withSpin HOC for spinning icon variants ([0129863](https://github.com/wangdicoder/tiny-design/commit/01298638adce7d0d59d87e4e2299bc7323cb30a0))
93+
- extract @tiny-design/icons package with tree-shakeable SVG icons ([2378f8d](https://github.com/wangdicoder/tiny-design/commit/2378f8d6a63461d59319dc7726b01511087f7781))
94+
- add withSpin HOC for spinning icon variants ([0129863](https://github.com/wangdicoder/tiny-design/commit/01298638adce7d0d59d87e4e2299bc7323cb30a0))
95+
- extract @tiny-design/icons package with tree-shakeable SVG icons ([2378f8d](https://github.com/wangdicoder/tiny-design/commit/2378f8d6a63461d59319dc7726b01511087f7781))
96+
97+
### Bug Fixes
98+
- replace deprecated `<Icon>` with named icon components in demos ([e51fca5](https://github.com/wangdicoder/tiny-design/commit/e51fca58a6bdb167d46b5569557107d513094a51))
4299
- resolve @tiny-design/icons from source in docs app ([64e7e7b](https://github.com/wangdicoder/tiny-design/commit/64e7e7bf570df1e4b4f79c305c42966133fb2230))
43100

44101
### Refactors

0 commit comments

Comments
 (0)