We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d681da commit f5788e7Copy full SHA for f5788e7
1 file changed
scripts/release.sh
@@ -72,7 +72,7 @@ if [ ! -z "$RELEASE_DRY_RUN" ]; then
72
git reset --soft HEAD~1
73
fi
74
75
-if [ "${npm_previous_package_version%.*}" != "${npm_current_package_version%.*}" ]; then
+if [ "$npm_previous_package_minor_version" != "$npm_current_package_minor_version" ]; then
76
echo "New minor version - Updating the OldVersion.md file"
77
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
78
if [ -z "$RELEASE_DRY_RUN" ]; then
0 commit comments