@@ -43,8 +43,7 @@ npm run clean-build
43
43
The first command will delete all of the ` node_modules ` directories in the environment and then rerun ` npm install ` .
44
44
The second command cleans up the typescript build cache files before retrying the build.
45
45
46
- Worst case scenario when neither of those commands work, try deleting the ` package-lock.json ` and the entire ` .nx ` cache
47
- directory and rerun the commands again.
46
+ Worst case scenario when neither of those commands work, try running ` npm run nuke-build-env ` and then rerun the two commands.
48
47
49
48
## Cloud builds
50
49
@@ -154,19 +153,16 @@ For instance if you are about to create the new `6.100.10` branch, then you woul
154
153
155
154
``` bash
156
155
git checkout -b rc6.100.10
157
- git push
158
156
npx nx release version --git-tag
159
- npm run post-versioning
157
+ git commit -m " Releasing 6.100.10"
158
+ git push
159
+ npm run update-version-tags
160
160
```
161
161
162
162
Make sure you use [ semver] ( https://semver.org/ ) for version numbering when selecting the version.
163
- The ` npx nx release version --git-tag ` command will create a new version tag and push it to GitHub.
164
-
165
- The ` npm run post-versioning ` script will update the peer dependencies in all of the ` packages/*/package.json ` files if necessary.
166
- It will then clean up the ` node_modules ` directories and rerun ` npm install ` to update the ` package-lock.json ` files.
167
- Finally, it creates and pushes a new commit with those ` package.json ` and ` package-lock.json ` files up to GitHub.
168
-
169
- > NOTE: this command will take a while, be patient
163
+ The ` npx nx release version --git-tag ` command will update the ` package*.josn ` files and create a new version tag.
164
+ Committing and pushing the branch will allow you to create the PR on GitHub.
165
+ The ` npm run update-version-tags ` will push the tags up to GitHub.
170
166
171
167
Then, make a PR to main. Merge the PR into main -- make sure you use "merge commit", not squash and merge, so that
172
168
the original commit where the tag was based on is still present in the main branch.
@@ -181,6 +177,21 @@ The package is published through an automation token belonging to the
181
177
[ rjsf-bot] ( https://www.npmjs.com/~rjsf-bot ) user on npm. This token
182
178
is stored as the ` NPM_TOKEN ` secret on GitHub Actions.
183
179
180
+ ### Updating the peer dependencies for new features in a minor release
181
+
182
+ If a set of changes added new features or APIs that require updating downstream peer dependencies, then run the following
183
+ command:
184
+
185
+ ``` bash
186
+ npm run post-versioning
187
+ ```
188
+
189
+ The ` npm run post-versioning ` script will update the peer dependencies in all of the ` packages/*/package.json ` files if necessary.
190
+ It will then clean up the ` node_modules ` directories and rerun ` npm install ` to update the ` package-lock.json ` files.
191
+ Finally, it creates and pushes a new commit with those ` package.json ` and ` package-lock.json ` files up to GitHub.
192
+
193
+ > NOTE: this command will take a while, be patient
194
+
184
195
### Releasing docs
185
196
186
197
Docs are automatically published to GitHub Pages when the ` main ` branch is updated.
0 commit comments