From a42a3869be7c5bbedad1d26f43812075d6dbb43f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 16 Jun 2024 23:14:09 +0100 Subject: [PATCH] chore: use backup file extension --- scripts/release-edge.sh | 4 +++- scripts/release-rc.sh | 4 +++- scripts/release.sh | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/release-edge.sh b/scripts/release-edge.sh index eb04601bbc..22c35ad644 100755 --- a/scripts/release-edge.sh +++ b/scripts/release-edge.sh @@ -19,7 +19,7 @@ if [[ ! -z ${NODE_AUTH_TOKEN} ]] ; then fi # use absolute urls for better rendering on npm -sed -i '' 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md +sed -i.bak 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md # Release packages for p in packages/* ; do @@ -39,3 +39,5 @@ for p in packages/* ; do pnpm publish --access public --no-git-checks --tag $TAG popd done + +mv README.md.bak README.md diff --git a/scripts/release-rc.sh b/scripts/release-rc.sh index 88e04e5d30..611c10283d 100755 --- a/scripts/release-rc.sh +++ b/scripts/release-rc.sh @@ -9,7 +9,7 @@ git restore -s@ -SW -- packages examples pnpm build # use absolute urls for better rendering on npm -sed -i '' 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md +sed -i.bak 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md # Release packages for PKG in packages/* ; do @@ -33,3 +33,5 @@ for PKG in packages/* ; do pnpm publish --access public --no-git-checks --tag $TAG popd > /dev/null done + +mv README.md.bak README.md diff --git a/scripts/release.sh b/scripts/release.sh index 40c18c87cc..147d47ea70 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -9,7 +9,7 @@ git restore -s@ -SW -- packages examples pnpm build # use absolute urls for better rendering on npm -sed -i '' 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md +sed -i.bak 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md # Release packages for PKG in packages/* ; do @@ -30,3 +30,5 @@ for PKG in packages/* ; do pnpm publish --access public --no-git-checks --tag $TAG popd > /dev/null done + +mv README.md.bak README.md