Skip to content

Commit

Permalink
fix: use CI_COMMIT_TAG instead of CI_BUILD_TAG for Gitlab CI (#8010)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta committed Jan 28, 2024
1 parent 17b5081 commit f5340b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/empty-ears-do.md
@@ -0,0 +1,5 @@
---
"electron-publish": patch
---

fix: use CI_COMMIT_TAG instead of CI_BUILD_TAG for Gitlab CI
3 changes: 2 additions & 1 deletion packages/electron-publish/src/publisher.ts
Expand Up @@ -135,7 +135,8 @@ export function getCiTag() {
process.env.APPVEYOR_REPO_TAG_NAME ||
process.env.CIRCLE_TAG ||
process.env.BITRISE_GIT_TAG ||
process.env.CI_BUILD_TAG ||
process.env.CI_BUILD_TAG || // deprecated, GitLab uses `CI_COMMIT_TAG` instead
process.env.CI_COMMIT_TAG ||
process.env.BITBUCKET_TAG ||
(process.env.GITHUB_REF_TYPE === "tag" ? process.env.GITHUB_REF_NAME : null)
return tag != null && tag.length > 0 ? tag : null
Expand Down

0 comments on commit f5340b7

Please sign in to comment.