Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use CI_COMMIT_TAG instead of CI_BUILD_TAG for Gitlab CI #8010

Merged
merged 1 commit into from Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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