ci(release): delete all local git tags before release script to prevent collisions if failure

This commit is contained in:
Yassine Doghri 2020-11-24 16:46:23 +00:00
parent 20e607afb7
commit a98e7fbced
1 changed files with 3 additions and 3 deletions

View File

@ -68,11 +68,11 @@ release_app:
# make prepare-release.sh executable
- chmod +x ./prepare-release.sh
# IMPORTANT: delete local git tags before release to prevent eventual script failure (ie. tag already exists)
- git tag | xargs git tag -d
# run semantic-release script (configured in `.releaserc.json` file)
- npm run release
# IMPORTANT: delete local git tags after release to prevent eventual script failure (ie. tag already exists)
- git tag | xargs git tag -d
only:
- main
- alpha