diff --git a/.changeset/two-eels-kiss.md b/.changeset/two-eels-kiss.md new file mode 100644 index 00000000000..66cb917abcc --- /dev/null +++ b/.changeset/two-eels-kiss.md @@ -0,0 +1,5 @@ +--- +"electron-publish": patch +--- + +fix: get CI tag in GitHub Actions diff --git a/packages/electron-publish/src/publisher.ts b/packages/electron-publish/src/publisher.ts index 42e61bb745d..9146f85f716 100644 --- a/packages/electron-publish/src/publisher.ts +++ b/packages/electron-publish/src/publisher.ts @@ -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 }