File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ jobs:
105
105
# continue-on-error: true
106
106
env :
107
107
GITHUB_TOKEN : ${{ secrets.AUTO_RELEASE_GH_TOKEN }}
108
+ BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
108
109
run : pnpm release
109
110
110
111
- name : Check published prerelease
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ import packageJson from '../package.json' assert { type: 'json' }
12
12
const CANARY_NPM_TAG = 'canary'
13
13
14
14
const version = getVersion ( packageJson )
15
- const branch = exec ( 'git branch --show-current' , { stdio : 'pipe' } ) [ 0 ] . trim ( )
15
+ const branch =
16
+ exec ( 'git branch --show-current' , { stdio : 'pipe' } ) [ 0 ] . trim ( ) ||
17
+ process . env . BRANCH_NAME
16
18
console . log ( 'Current branch:' , branch )
17
19
18
20
await setVersions ( { version } )
You can’t perform that action at this time.
0 commit comments