Skip to content

Commit

Permalink
fix: get CI tag in GitHub Actions (#7231)
Browse files Browse the repository at this point in the history
  • Loading branch information
laprasdrum authored Nov 2, 2022
1 parent 1e70502 commit c21e3b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/two-eels-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"electron-publish": patch
---

fix: get CI tag in GitHub Actions
8 changes: 7 additions & 1 deletion packages/electron-publish/src/publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ export abstract class HttpPublisher extends Publisher {

export function getCiTag() {
const tag =
process.env.TRAVIS_TAG || process.env.APPVEYOR_REPO_TAG_NAME || process.env.CIRCLE_TAG || process.env.BITRISE_GIT_TAG || process.env.CI_BUILD_TAG || process.env.BITBUCKET_TAG
process.env.TRAVIS_TAG ||
process.env.APPVEYOR_REPO_TAG_NAME ||
process.env.CIRCLE_TAG ||
process.env.BITRISE_GIT_TAG ||
process.env.CI_BUILD_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
}

0 comments on commit c21e3b3

Please sign in to comment.