File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77 - release/*
8+ - ci/release-auth-helpers # Temporary branch for auth-helpers release
89
910permissions :
1011 contents : read
1112
1213jobs :
14+ # Manual auth-helpers only publish
15+ auth_helpers_only :
16+ if : github.ref == 'refs/heads/ci/release-auth-helpers'
17+ runs-on : ubuntu-latest
18+ permissions :
19+ id-token : write
20+ contents : read
21+ steps :
22+ - uses : actions/checkout@v4
23+ - uses : actions/setup-node@v4
24+ with :
25+ node-version : 20
26+ - run : npm install -g npm@latest
27+ - name : Build and publish auth-helpers
28+ run : |
29+ set -ex
30+
31+ LEGACY_VERSION="0.14.0" # Hard-coded for this one-time release
32+
33+ echo "export const VERSION = '$LEGACY_VERSION';" > src/version.ts
34+ npm ci
35+ npm run build
36+
37+ sed -i 's|"version": "0.0.0"|"version": "'"$LEGACY_VERSION"'"|g' package.json
38+ sed -i 's|"version": "0.0.0"|"version": "'"$LEGACY_VERSION"'"|g' package-lock.json
39+
40+ # Publish as @supabase/auth-helpers-nextjs
41+ sed -i 's|"name": "@supabase/ssr"|"name": "@supabase/auth-helpers-nextjs"|g' package.json
42+ npm publish --provenance --tag latest
43+
44+ # Publish as @supabase/auth-helpers-react
45+ sed -i 's|"name": "@supabase/auth-helpers-nextjs"|"name": "@supabase/auth-helpers-react"|g' package.json
46+ npm publish --provenance --tag latest
47+
48+ # Publish as @supabase/auth-helpers-remix
49+ sed -i 's|"name": "@supabase/auth-helpers-react"|"name": "@supabase/auth-helpers-remix"|g' package.json
50+ npm publish --provenance --tag latest
51+
52+ # Publish as @supabase/auth-helpers-sveltekit
53+ sed -i 's|"name": "@supabase/auth-helpers-remix"|"name": "@supabase/auth-helpers-sveltekit"|g' package.json
54+ npm publish --provenance --tag latest
55+
1356 release_please :
57+ if : github.ref != 'refs/heads/ci/release-auth-helpers'
1458 runs-on : ubuntu-latest
1559 permissions :
1660 id-token : write
You can’t perform that action at this time.
0 commit comments