@spaced-out/ui-design-system 0.4.13 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,11 @@ name: Release Genesis to NPM
|
|
|
5
5
|
on:
|
|
6
6
|
workflow_dispatch:
|
|
7
7
|
inputs:
|
|
8
|
+
branch:
|
|
9
|
+
# Note(Nishant): New input added to dynamically select release branch from UI
|
|
10
|
+
description: 'Branch to release from'
|
|
11
|
+
required: true
|
|
12
|
+
default: master
|
|
8
13
|
release-type:
|
|
9
14
|
description: 'Select Release type (prerelease appends beta in build number)'
|
|
10
15
|
type: choice
|
|
@@ -36,6 +41,8 @@ jobs:
|
|
|
36
41
|
with:
|
|
37
42
|
token: ${{ secrets.NPM_PUBLISH_USER_ACCESS_TOKEN }}
|
|
38
43
|
fetch-depth: '0'
|
|
44
|
+
ref: ${{ github.event.inputs.branch }} # Note(Nishant): Dynamically checkout the selected branch from input
|
|
45
|
+
|
|
39
46
|
- name: Setup Node.js @18
|
|
40
47
|
uses: actions/setup-node@v4
|
|
41
48
|
with:
|
|
@@ -76,35 +83,49 @@ jobs:
|
|
|
76
83
|
git config --global user.email "86281150+superrover@users.noreply.github.com"
|
|
77
84
|
git config --global user.name "Nishant Gaurav"
|
|
78
85
|
git fetch --all
|
|
79
|
-
git checkout
|
|
80
|
-
git pull origin
|
|
86
|
+
git checkout ${{ github.event.inputs.branch }} # Note(Nishant): Checkout the correct branch before release
|
|
87
|
+
git pull origin ${{ github.event.inputs.branch }}
|
|
81
88
|
|
|
82
89
|
# Bump package version
|
|
83
90
|
# Use tag latest
|
|
84
|
-
- name: Bump release version
|
|
85
|
-
if: startsWith(github.event.inputs.release-type, 'pre') != true
|
|
86
|
-
run: |
|
|
87
|
-
yarn build:changelog --release-as $RELEASE_TYPE
|
|
88
|
-
echo "RELEASE_TAG=latest" >> $GITHUB_ENV
|
|
89
|
-
env:
|
|
90
|
-
RELEASE_TYPE: ${{ github.event.inputs.release-type }}
|
|
91
|
-
|
|
92
91
|
# Bump package pre-release version
|
|
93
92
|
# Use tag beta for pre-release versions
|
|
94
|
-
- name:
|
|
95
|
-
|
|
93
|
+
- name: Validate release type against selected branch
|
|
94
|
+
id: validate-release
|
|
96
95
|
run: |
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
BRANCH="${{ github.event.inputs.branch }}"
|
|
97
|
+
RELEASE_TYPE="${{ github.event.inputs.release-type }}"
|
|
98
|
+
|
|
99
|
+
if [[ "$BRANCH" != "master" && "$RELEASE_TYPE" != "prerelease" ]]; then
|
|
100
|
+
echo "❌ Only prerelease is allowed on non-master branches."
|
|
101
|
+
exit 1
|
|
102
|
+
fi
|
|
103
|
+
|
|
104
|
+
if [[ "$RELEASE_TYPE" == "prerelease" ]]; then
|
|
105
|
+
echo "RELEASE_TAG=beta" >> $GITHUB_ENV
|
|
106
|
+
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
|
|
107
|
+
else
|
|
108
|
+
echo "RELEASE_TAG=latest" >> $GITHUB_ENV
|
|
109
|
+
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
|
|
110
|
+
fi
|
|
111
|
+
# Note(Nishant): Enforces prerelease-only behavior on non-master branches
|
|
112
|
+
|
|
113
|
+
- name: Bump version and generate changelog
|
|
114
|
+
run: |
|
|
115
|
+
if [[ "$IS_PRERELEASE" == "true" ]]; then
|
|
116
|
+
yarn build:changelog --${{ github.event.inputs.release-type }} beta
|
|
117
|
+
else
|
|
118
|
+
yarn build:changelog --release-as ${{ github.event.inputs.release-type }}
|
|
119
|
+
fi
|
|
120
|
+
# Note(Nishant): Unified step for version bump, respecting prerelease condition
|
|
101
121
|
|
|
102
122
|
# Push changes
|
|
103
123
|
- name: Push CHANGELOG.md and created release tag
|
|
104
124
|
run: |
|
|
105
|
-
git push --follow-tags origin
|
|
125
|
+
git push --follow-tags origin ${{ github.event.inputs.branch }}
|
|
106
126
|
env:
|
|
107
127
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
128
|
+
# Note(Nishant): Push to selected branch, not hardcoded master
|
|
108
129
|
|
|
109
130
|
# Publish version to NPM repository
|
|
110
131
|
- name: Publish to NPM
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.4.14](https://github.com/spaced-out/ui-design-system/compare/v0.4.13...v0.4.14) (2025-08-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* added text container classname to override ([#385](https://github.com/spaced-out/ui-design-system/issues/385)) ([1dd0671](https://github.com/spaced-out/ui-design-system/commit/1dd0671cfb915ae9e2405a3cd44f6fe4503a906e))
|
|
11
|
+
* modified npm release job to honour branch ([7ee7b2e](https://github.com/spaced-out/ui-design-system/commit/7ee7b2ea261eae4c4b2d238f18d3171d7fac8b81))
|
|
12
|
+
|
|
5
13
|
### [0.4.13](https://github.com/spaced-out/ui-design-system/compare/v0.4.12...v0.4.13) (2025-08-04)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -33,7 +33,7 @@ const KPIBox = exports.KPIBox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
33
33
|
size: iconSize,
|
|
34
34
|
type: iconType
|
|
35
35
|
}), /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: _KPIBoxModule.default.textContainer
|
|
36
|
+
className: (0, _classify.default)(_KPIBoxModule.default.textContainer, classNames?.textContainer)
|
|
37
37
|
}, !!topContent && /*#__PURE__*/React.createElement("div", {
|
|
38
38
|
className: (0, _classify.default)(_KPIBoxModule.default.topFoldContent, classNames?.topFoldContent)
|
|
39
39
|
}, topContent), !!middleContent && /*#__PURE__*/React.createElement("div", {
|
|
@@ -15,6 +15,7 @@ type ClassNames = $ReadOnly<{
|
|
|
15
15
|
topFoldContent?: string,
|
|
16
16
|
middleFoldContent?: string,
|
|
17
17
|
bottomFoldContent?: string,
|
|
18
|
+
textContainer?: string,
|
|
18
19
|
}>;
|
|
19
20
|
|
|
20
21
|
export type KPIBoxProps = {
|
|
@@ -60,7 +61,7 @@ export const KPIBox: React$AbstractComponent<KPIBoxProps, HTMLDivElement> =
|
|
|
60
61
|
/>
|
|
61
62
|
)}
|
|
62
63
|
|
|
63
|
-
<div className={css.textContainer}>
|
|
64
|
+
<div className={classify(css.textContainer, classNames?.textContainer)}>
|
|
64
65
|
{!!topContent && (
|
|
65
66
|
<div
|
|
66
67
|
className={classify(
|