Skip to content

Commit b3f0a21

Browse files
committed
chore(ci): test the release with canary
1 parent 03a8191 commit b3f0a21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/release-stable.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ function safeExec(cmd: string, opts = {}) {
5555
verbose: true,
5656
gitCommit: false,
5757
stageChanges: false,
58-
specifier: versionSpecifier,
58+
specifier: 'prerelease',
59+
preid: 'canary',
5960
})
6061

6162
// Update version.ts files with the new versions
@@ -114,14 +115,14 @@ function safeExec(cmd: string, opts = {}) {
114115
const publishResult = await releasePublish({
115116
registry: 'https://registry.npmjs.org/',
116117
access: 'public',
117-
tag: 'latest',
118+
tag: 'canary',
118119
verbose: true,
119120
})
120121

121122
// Publish gotrue-js as legacy mirror of auth-js
122123
console.log('\n📦 Publishing @supabase/gotrue-js (legacy mirror)...')
123124
try {
124-
safeExec('npx tsx scripts/publish-gotrue-legacy.ts --tag=latest')
125+
safeExec('npx tsx scripts/publish-gotrue-legacy.ts --tag=canary')
125126
} catch (error) {
126127
console.error('❌ Failed to publish gotrue-js legacy package:', error)
127128
// Don't fail the entire release if gotrue-js fails

0 commit comments

Comments
 (0)