From 8ce178a33ff5e0c54427e9010a107aba8455ac98 Mon Sep 17 00:00:00 2001 From: Robert Prehn <3952444+prehnRA@users.noreply.github.com> Date: Fri, 18 Jun 2021 20:04:24 -0500 Subject: [PATCH] fix: Checkout master before release --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18c7c5a4..9b39a305 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,6 +73,7 @@ deploy_to_tags: - export GIT_BRANCH=$CI_COMMIT_REF_NAME - git config user.email $GITLAB_USER_EMAIL - git config user.name $GITLAB_USER_NAME + - git checkout $CI_COMMIT_REF_NAME - npm install --no-save - git status - npx semantic-release --repository-url=$CI_REPOSITORY_URL