Skip to content

Commit f5788e7

Browse files
authored
[no ci] Update scripts/release.sh
1 parent 1d681da commit f5788e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if [ ! -z "$RELEASE_DRY_RUN" ]; then
7272
git reset --soft HEAD~1
7373
fi
7474

75-
if [ "${npm_previous_package_version%.*}" != "${npm_current_package_version%.*}" ]; then
75+
if [ "$npm_previous_package_minor_version" != "$npm_current_package_minor_version" ]; then
7676
echo "New minor version - Updating the OldVersion.md file"
7777
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
7878
if [ -z "$RELEASE_DRY_RUN" ]; then

0 commit comments

Comments
 (0)