Skip to content

Commit 232e4ac

Browse files
committed
chore(ci): access token everywhere
1 parent 250a984 commit 232e4ac

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112112
RELEASE_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} # used for tags
113113
run: |
114+
git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
114115
npm run release-stable -- --versionSpecifier "${{ github.event.inputs.version_specifier }}"
115116
116117
- name: Summary

scripts/release-stable.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ if (!validSpecifiers.includes(versionSpecifier) && !isValidVersion) {
4747
// specifier: versionSpecifier,
4848
// })
4949

50+
if (process.env.RELEASE_GITHUB_TOKEN) {
51+
const remoteUrl = `https://x-access-token:${process.env.RELEASE_GITHUB_TOKEN}@github.com/supabase/supabase-js.git`
52+
execSync(`git remote set-url origin "${remoteUrl}"`)
53+
}
54+
5055
// Update version.ts files with the new versions
5156
console.log('\n📦 Updating version.ts files...')
5257
// execSync('npx tsx scripts/update-version-files.ts', { stdio: 'inherit' })

0 commit comments

Comments
 (0)