Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ on:
# if the version hasn't changed, don't bother
- package.json

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-24.04
timeout-minutes: 4

steps:
- name: Checkout Repo
uses: actions/checkout@v4
uses: actions/checkout@v5

- uses: actions/setup-node@v4
with:
Expand All @@ -24,7 +28,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: '@supabase'

# Ensure npm 11.5.1 or later is installed for trusted publishing support
- name: Update npm
run: npm install -g npm@latest
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}