@@ -29,7 +29,7 @@ success() {
2929retry_step () {
3030 local step_name=" $1 "
3131 local step_command=" $2 "
32-
32+
3333 while true ; do
3434 step " $step_name "
3535 if eval " $step_command " ; then
@@ -43,21 +43,21 @@ retry_step() {
4343 echo " 2. Skip this step (continue with release)"
4444 echo " 3. Abort release"
4545 read -p " Choose (1/2/3): " choice
46-
46+
4747 case $choice in
48- 1)
48+ 1)
4949 echo " Retrying..."
50- continue
50+ continue
5151 ;;
52- 2)
52+ 2)
5353 warn " ⚠ Skipping $step_name "
5454 break
5555 ;;
56- 3)
56+ 3)
5757 error " Release aborted by user"
5858 exit 1
5959 ;;
60- * )
60+ * )
6161 echo " Invalid choice, please enter 1, 2, or 3"
6262 ;;
6363 esac
@@ -68,13 +68,13 @@ retry_step() {
6868manual_step () {
6969 local step_name=" $1 "
7070 local instructions=" $2 "
71-
71+
7272 while true ; do
7373 step " $step_name "
7474 echo " $instructions "
7575 echo " Press Enter when this is done, or 'q' to quit"
7676 read -r response
77-
77+
7878 if [ " $response " = " q" ] || [ " $response " = " Q" ]; then
7979 error " Release aborted by user"
8080 exit 1
@@ -149,18 +149,18 @@ if [ "$npm_previous_package_minor_version" != "$npm_current_package_minor_versio
149149 retry_step " Update OldVersions.md" "
150150 sed -i \" s/^- \[v\$ npm_previous_package_minor_version\].*/- [v\$ npm_current_package_minor_version](https:\/\/github.com\/marmelab\/react-admin\/blob\/master\/docs\/Admin.md)\n- [v\$ npm_previous_package_minor_version](https:\/\/github\.com\/marmelab\/react\-admin\/blob\/v\$ npm_previous_package_version\/docs\/Admin.md\)/\" docs/OldVersions.md
151151 "
152-
152+
153153 manual_step " Review OldVersions.md" " Please review the docs/OldVersions.md file and update it if needed."
154-
154+
155155 if [ -z " $RELEASE_DRY_RUN " ]; then
156156 retry_step " Commit OldVersions.md" "
157157 git add . &&
158158 git commit -m \" Update docs/OldVersions.md for version \$ {npm_current_package_version}\"
159159 "
160160 fi
161-
161+
162162 retry_step " Update create-react-admin templates" " yarn run update-create-react-admin-deps \$ {npm_current_package_version}"
163-
163+
164164 if [ -z " $RELEASE_DRY_RUN " ]; then
165165 retry_step " Commit template updates" "
166166 git add . &&
204204
205205# Step 10: Publish packages
206206if [ -z " $RELEASE_DRY_RUN " ]; then
207- retry_step " Publish packages" " ./node_modules/.bin/lerna publish from-package"
207+ retry_step " Publish packages" " ./node_modules/.bin/lerna publish --no-verify-access from-package"
208208else
209209 info " dry mode -- skipping lerna publish"
210210fi
@@ -241,4 +241,4 @@ Please update the documentation manually
241241You can use the 'copy-ra-oss-docs.sh' script if you have it"
242242fi
243243
244- success " 🎉 The ${npm_current_package_version} release is done! 🎉"
244+ success " 🎉 The ${npm_current_package_version} release is done! 🎉"
0 commit comments