@arbor-education/design-system.components 1.0.3 → 1.0.5
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.
|
@@ -26,10 +26,42 @@ jobs:
|
|
|
26
26
|
- name: Check for changeset
|
|
27
27
|
if: ${{ !startsWith(github.head_ref, 'changeset-release/') }}
|
|
28
28
|
run: |
|
|
29
|
-
NEW_CHANGESETS=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- .changeset/ | grep -v 'README\.md' || true)
|
|
29
|
+
NEW_CHANGESETS=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- .changeset/ | grep '\.md$' | grep -v 'README\.md' || true)
|
|
30
30
|
if [ -z "$NEW_CHANGESETS" ]; then
|
|
31
31
|
echo "No changeset found in this PR. Please add a changeset file using 'yarn changeset'."
|
|
32
32
|
exit 1
|
|
33
33
|
fi
|
|
34
34
|
echo "Changeset(s) found in this PR:"
|
|
35
35
|
echo "$NEW_CHANGESETS"
|
|
36
|
+
- name: Validate changeset package names
|
|
37
|
+
if: ${{ !startsWith(github.head_ref, 'changeset-release/') }}
|
|
38
|
+
run: |
|
|
39
|
+
set -e
|
|
40
|
+
EXPECTED_NAME=$(node -p "require('./package.json').name")
|
|
41
|
+
NEW_CHANGESETS=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- .changeset/ | grep '\.md$' | grep -v 'README\.md' || true)
|
|
42
|
+
if [ -z "$NEW_CHANGESETS" ]; then
|
|
43
|
+
echo "No changesets to validate."
|
|
44
|
+
exit 0
|
|
45
|
+
fi
|
|
46
|
+
MISMATCH=0
|
|
47
|
+
for FILE in $NEW_CHANGESETS; do
|
|
48
|
+
if [ ! -f "$FILE" ]; then
|
|
49
|
+
continue
|
|
50
|
+
fi
|
|
51
|
+
PACKAGE_NAMES=$(tr -d '\r' < "$FILE" | awk '/^---$/{c++; next} c==1{print}' | sed -E "s/^[\"']?([^\"':]+)[\"']?:.*/\1/")
|
|
52
|
+
if [ -z "$PACKAGE_NAMES" ]; then
|
|
53
|
+
echo "No package entries in $FILE frontmatter — treating as a valid empty/no-release changeset."
|
|
54
|
+
continue
|
|
55
|
+
fi
|
|
56
|
+
for NAME in $PACKAGE_NAMES; do
|
|
57
|
+
if [ "$NAME" != "$EXPECTED_NAME" ]; then
|
|
58
|
+
echo "::error file=$FILE::Changeset references package '$NAME', but this repo's package.json name is '$EXPECTED_NAME'."
|
|
59
|
+
MISMATCH=1
|
|
60
|
+
fi
|
|
61
|
+
done
|
|
62
|
+
done
|
|
63
|
+
if [ "$MISMATCH" -ne 0 ]; then
|
|
64
|
+
echo "One or more changesets reference an incorrect package name. Fix the frontmatter to match package.json's \"name\" field ($EXPECTED_NAME)."
|
|
65
|
+
exit 1
|
|
66
|
+
fi
|
|
67
|
+
echo "All changeset package names match $EXPECTED_NAME."
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#241](https://github.com/arbor-education/design-system.components/pull/241) [`0931cd7`](https://github.com/arbor-education/design-system.components/commit/0931cd7c2e3ef63533b67a5b46debaaee2d21793) Thanks [@rickbairstow](https://github.com/rickbairstow)! - MIS-73546 Update changeset workflow to check package name
|
|
8
|
+
|
|
9
|
+
## 1.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#242](https://github.com/arbor-education/design-system.components/pull/242) [`f8b548c`](https://github.com/arbor-education/design-system.components/commit/f8b548c2aa7e20ae12ff1f660fff821c3ec821f0) Thanks [@AmeeMorris](https://github.com/AmeeMorris)! - MIS-73549 standardise npm author
|
|
14
|
+
|
|
3
15
|
## 1.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbor-education/design-system.components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "The component library for the design system (the baby)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+ssh://git@github.com/arbor-education/design-system.components.git"
|
|
10
10
|
},
|
|
11
|
-
"author": "
|
|
11
|
+
"author": "Arbor Education <frontend-engineers@arbor-education.com>",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@react-hook/resize-observer": "^2.0.2",
|