File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -101,19 +101,17 @@ jobs:
101101 echo " Use: patch|minor|major|pre*, or v1.2.3"
102102 exit 1
103103 fi
104-
104+
105105 - name : Set git remote to use App token
106106 run : git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
107-
107+
108108 - name : Release
109109 env :
110110 NPM_CONFIG_PROVENANCE : true
111111 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112- RELEASE_GITHUB_TOKEN : ${{ steps.app-token.outputs.token }} # used for tags
112+ RELEASE_GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
113113 run : |
114- git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
115114 npm run release-stable -- --versionSpecifier "${{ github.event.inputs.version_specifier }}"
116-
117115 - name : Summary
118116 if : ${{ success() }}
119117 run : |
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ if (!validSpecifiers.includes(versionSpecifier) && !isValidVersion) {
5050 if ( process . env . RELEASE_GITHUB_TOKEN ) {
5151 const remoteUrl = `https://x-access-token:${ process . env . RELEASE_GITHUB_TOKEN } @github.com/supabase/supabase-js.git`
5252 execSync ( `git remote set-url origin "${ remoteUrl } "` )
53+ console . log ( 'Set origin to:' , remoteUrl )
5354 }
5455
5556 // Update version.ts files with the new versions
@@ -144,6 +145,8 @@ if (!validSpecifiers.includes(versionSpecifier) && !isValidVersion) {
144145 execSync ( `git remote set-url origin "${ remoteUrl } "` )
145146 }
146147
148+ console . log ( 'Remote config before push:' )
149+ console . log ( execSync ( 'git remote -v' ) . toString ( ) )
147150 execSync ( `git push origin ${ branchName } ` )
148151
149152 // Open PR using GitHub CLI
You can’t perform that action at this time.
0 commit comments