Skip to content

Commit ea7be18

Browse files
committed
feat!: publish SSR under deprecated auth-helpers package names
1 parent bd368ca commit ea7be18

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,33 @@ jobs:
120120
121121
npm publish --provenance --tag "$DIST_TAG"
122122
123+
# Also publish under deprecated auth-helpers names for backward compatibility
124+
# This helps users still using the old packages (especially due to LLM recommendations)
125+
echo "Publishing under legacy auth-helpers names..."
126+
127+
# Publish as @supabase/auth-helpers-nextjs
128+
echo "Publishing as @supabase/auth-helpers-nextjs..."
129+
sed -i 's|"name": "@supabase/ssr"|"name": "@supabase/auth-helpers-nextjs"|g' package.json
130+
npm publish --provenance --tag "$DIST_TAG"
131+
132+
# Publish as @supabase/auth-helpers-react
133+
echo "Publishing as @supabase/auth-helpers-react..."
134+
sed -i 's|"name": "@supabase/auth-helpers-nextjs"|"name": "@supabase/auth-helpers-react"|g' package.json
135+
npm publish --provenance --tag "$DIST_TAG"
136+
137+
# Publish as @supabase/auth-helpers-remix
138+
echo "Publishing as @supabase/auth-helpers-remix..."
139+
sed -i 's|"name": "@supabase/auth-helpers-react"|"name": "@supabase/auth-helpers-remix"|g' package.json
140+
npm publish --provenance --tag "$DIST_TAG"
141+
142+
# Publish as @supabase/auth-helpers-sveltekit
143+
echo "Publishing as @supabase/auth-helpers-sveltekit..."
144+
sed -i 's|"name": "@supabase/auth-helpers-remix"|"name": "@supabase/auth-helpers-sveltekit"|g' package.json
145+
npm publish --provenance --tag "$DIST_TAG"
146+
147+
# Restore original package name for consistency
148+
sed -i 's|"name": "@supabase/auth-helpers-sveltekit"|"name": "@supabase/ssr"|g' package.json
149+
123150
- name: Create GitHub release and branches
124151
if: ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
125152
run: |

0 commit comments

Comments
 (0)