Skip to content

Commit 250a984

Browse files
committed
chore(ci): set origin
1 parent c0c9b1e commit 250a984

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/release-stable.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ if (!validSpecifiers.includes(versionSpecifier) && !isValidVersion) {
134134
console.log('No changes to commit')
135135
}
136136

137+
if (process.env.RELEASE_GITHUB_TOKEN) {
138+
const remoteUrl = `https://x-access-token:${process.env.RELEASE_GITHUB_TOKEN}@github.com/supabase/supabase-js.git`
139+
execSync(`git remote set-url origin "${remoteUrl}"`)
140+
}
141+
137142
execSync(`git push origin ${branchName}`)
138143

139144
// Open PR using GitHub CLI

0 commit comments

Comments
 (0)