From 4e63ef97644cd9a305ce400a84cca37076976b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Tue, 20 Feb 2018 00:59:47 -0500 Subject: [PATCH] After deploying a stable release, clean up the `next` tag --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index d0057b78..d4367fa5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,3 +45,9 @@ deploy: condition: "$BUILD_ENV = production" tags: true repo: thelounge/lounge + +# If the current release is a stable release, remove potential pre-release tag +after_deploy: | + if [ "$(npm_dist_tag)" == "latest" ]; then + npm dist-tag rm thelounge next || true + fi