You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPER_GUIDE.md
-78Lines changed: 0 additions & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1048,84 +1048,6 @@ path included will redirect to the frontend application.
1048
1048
<p align="right">(<a href="#readme-top">back to top</a>)</p>
1049
1049
<br>
1050
1050
1051
-
## Publishing the Design System
1052
-
1053
-
The Design System is published to the npm Package Registry. To publish a new version, follow these steps:
1054
-
1055
-
1. **Update the version**
1056
-
1057
-
Update the version running the lerna command:
1058
-
1059
-
```shell
1060
-
lerna version --no-push
1061
-
```
1062
-
1063
-
This command will ask you for the new version and will update the `package.json` files and create a new commit with the changes.
1064
-
1065
-
2. **Review the auto generated CHANGELOG.md**
1066
-
1067
-
The lerna command will generate a new `CHANGELOG.md` file with the changes for the new version. Review the changes and make sure that the file is correct.
1068
-
1069
-
If it looks good, you can push the changes to the repository.
1070
-
1071
-
```shell
1072
-
git push && git push --tags
1073
-
```
1074
-
1075
-
Optional:
1076
-
1077
-
If you need to make any changes to the `CHANGELOG.md` file, you can do it manually.
1078
-
1079
-
After manually updating the `CHANGELOG.md` file, you can commit the changes.
1080
-
1081
-
```shell
1082
-
git add .
1083
-
git commit --amend --no-edit
1084
-
git push --force && git push --tags --force
1085
-
```
1086
-
1087
-
This command will amend the lerna commit and push the changes to the repository.
1088
-
1089
-
3. **Review the new tag in GitHub**
1090
-
1091
-
After pushing the changes, you can review the new tag in the [GitHub repository](https://github.com/IQSS/dataverse-frontend/tags).
1092
-
1093
-
The tag should be created with the new version.
1094
-
1095
-
4. **Publish the package**
1096
-
1097
-
After the version is updated, you can publish the package running the lerna command:
1098
-
1099
-
```shell
1100
-
lerna publish from-package
1101
-
```
1102
-
1103
-
This command will publish the package to the npm registry.
1104
-
1105
-
Remember that you need a valid npm token to publish the packages.
1106
-
1107
-
Get a new token from the npm website and update the `.npmrc` file with the new token.
1108
-
1109
-
Open the `.npmrc` file and replace `YOUR_NPM_TOKEN ` with your actual npm token.
1110
-
1111
-
⚠️ Please ensure that any lines registering the `@iqss` scope with the GitHub Packages registry are commented out. This is important because otherwise, the package would be published there instead of npm.
1112
-
1113
-
```plaintext
1114
-
legacy-peer-deps=true
1115
-
1116
-
//npm.pkg.github.com/:_authToken=YOUR_NPM_TOKEN
1117
-
@iqss:registry=https://npm.pkg.github.com/
1118
-
```
1119
-
1120
-
5. **Review the new version in the npm registry**
1121
-
1122
-
After publishing the packages, you can review the new version in the [npm registry](https://www.npmjs.com/package/@iqss/dataverse-design-system?activeTab=versions).
1123
-
1124
-
The new version should be available in the npm registry.
1125
-
1126
-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
The Design System is published to the npm Package Registry. To publish a new version, follow these steps:
4
+
5
+
1.**Update the Changelog**
6
+
7
+
Move entries from Non Published Changes to the new version section and clear the Non Published Changes section.
8
+
9
+
2.**Update Readme with the latest Storybook build**
10
+
11
+
Update the `README.md` file in the `packages/design-system` folder with the latest Storybook build.
12
+
13
+
You can search this link in the Chromatic Deployment Github Action -> Publish To Chromatic step -> "View your Storybook at"
14
+
15
+
3.**Update the version**
16
+
17
+
Commit all your changes so far.
18
+
19
+
Update the version running the lerna command:
20
+
21
+
```shell
22
+
lerna version --no-push
23
+
```
24
+
25
+
This command will ask you for the new version and will update the `package.json` files and create a new commit with the changes.
26
+
27
+
If it looks good, you can push the changes to the repository.
28
+
29
+
```shell
30
+
git push && git push --tags
31
+
```
32
+
33
+
4.**Review the new tag in GitHub**
34
+
35
+
After pushing the changes, you can review the new tag in the [GitHub repository](https://github.com/IQSS/dataverse-frontend/tags).
36
+
37
+
The tag should be created with the new version.
38
+
39
+
5.**Build the package**
40
+
41
+
Ensure the design system is built so the dist artifacts are available:
42
+
43
+
```bash
44
+
# from the repo root
45
+
npm run --workspace @iqss/dataverse-design-system build
46
+
# or, from the package folder
47
+
# cd packages/design-system && npm run build
48
+
```
49
+
50
+
Note: publishing will also trigger a build automatically via the package's prepublishOnly script, but running it explicitly helps catch issues earlier.
51
+
52
+
6.**Publish the package**
53
+
54
+
After the version is updated and the package is built, you can publish the package running the lerna command:
55
+
56
+
```shell
57
+
lerna publish from-package
58
+
```
59
+
60
+
This command will publish the package to the npm registry.
61
+
62
+
Remember that you need a valid npm token to publish the packages.
63
+
64
+
Get a new token from the npm website and update the `.npmrc` file with the new token.
65
+
66
+
Open the `.npmrc` file and replace `YOUR_NPM_TOKEN ` with your actual npm token.
67
+
68
+
⚠️ Please ensure that any lines registering the `@iqss` scope with the GitHub Packages registry are commented out. This is important because otherwise, the package would be published there instead of npm.
69
+
70
+
```plaintext
71
+
legacy-peer-deps=true
72
+
73
+
//npm.pkg.github.com/:_authToken=YOUR_NPM_TOKEN
74
+
@iqss:registry=https://npm.pkg.github.com/
75
+
```
76
+
77
+
7.**Review the new version in the npm registry**
78
+
79
+
After publishing the packages, you can review the new version in the [npm registry](https://www.npmjs.com/package/@iqss/dataverse-design-system?activeTab=versions).
80
+
81
+
The new version should be available in the npm registry.
Copy file name to clipboardExpand all lines: packages/design-system/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ function App() {
56
56
exportdefaultApp
57
57
```
58
58
59
-
For detailed usage instructions and available customization options, refer to the [Storybook](https://646fbe232a8d3b501a1943f3-euwxbewiys.chromatic.com) provided with the package.
59
+
For detailed usage instructions and available customization options, refer to the [Storybook](https://646fbe232a8d3b501a1943f3-mdvdyoulio.chromatic.com) provided with the package.
0 commit comments