Skip to content

Commit

Permalink
ci: publish @supabase/gotrue-js (#827)
Browse files Browse the repository at this point in the history
`npm publish` is required instead of `npx semantic-release` because the
semantic release has previously run for `@supabase/auth-js`. This just
publishes the package under a different name.
  • Loading branch information
hf authored Dec 20, 2023
1 parent f9cd32e commit cd4ebee
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create a release for @supabase/gotrue-js
- name: Publish @supabase/gotrue-js
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc
for f in package.json package-lock.json
do
sed -i 's|\(["/]\)auth-js|\1gotrue-js|g' "$f"
done
npx semantic-release -r 'https://github.com/supabase/gotrue-js.git'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
npm publish --tag latest

0 comments on commit cd4ebee

Please sign in to comment.