@@ -120,6 +120,33 @@ jobs:
120
120
121
121
npm publish --provenance --tag "$DIST_TAG"
122
122
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
+
123
150
- name : Create GitHub release and branches
124
151
if : ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
125
152
run : |
0 commit comments