Skip to content

Commit c5a3807

Browse files
authored
chore: use trusted publisher for release (#99)
1 parent bd50610 commit c5a3807

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ on:
88
# if the version hasn't changed, don't bother
99
- package.json
1010

11+
permissions:
12+
contents: read
13+
id-token: write
14+
1115
jobs:
1216
publish:
1317
runs-on: ubuntu-24.04
1418
timeout-minutes: 4
1519

1620
steps:
1721
- name: Checkout Repo
18-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
1923

2024
- uses: actions/setup-node@v4
2125
with:
@@ -24,7 +28,8 @@ jobs:
2428
registry-url: 'https://registry.npmjs.org'
2529
scope: '@supabase'
2630

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

0 commit comments

Comments
 (0)