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:
101
101
echo " Use: patch|minor|major|pre*, or v1.2.3"
102
102
exit 1
103
103
fi
104
-
104
+
105
105
- name : Set git remote to use App token
106
106
run : git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
107
-
107
+
108
108
- name : Release
109
109
env :
110
110
NPM_CONFIG_PROVENANCE : true
111
111
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 }}
113
113
run : |
114
- git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
115
114
npm run release-stable -- --versionSpecifier "${{ github.event.inputs.version_specifier }}"
116
-
117
115
- name : Summary
118
116
if : ${{ success() }}
119
117
run : |
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ if (!validSpecifiers.includes(versionSpecifier) && !isValidVersion) {
50
50
if ( process . env . RELEASE_GITHUB_TOKEN ) {
51
51
const remoteUrl = `https://x-access-token:${ process . env . RELEASE_GITHUB_TOKEN } @github.com/supabase/supabase-js.git`
52
52
execSync ( `git remote set-url origin "${ remoteUrl } "` )
53
+ console . log ( 'Set origin to:' , remoteUrl )
53
54
}
54
55
55
56
// Update version.ts files with the new versions
@@ -144,6 +145,8 @@ if (!validSpecifiers.includes(versionSpecifier) && !isValidVersion) {
144
145
execSync ( `git remote set-url origin "${ remoteUrl } "` )
145
146
}
146
147
148
+ console . log ( 'Remote config before push:' )
149
+ console . log ( execSync ( 'git remote -v' ) . toString ( ) )
147
150
execSync ( `git push origin ${ branchName } ` )
148
151
149
152
// Open PR using GitHub CLI
You can’t perform that action at this time.
0 commit comments