diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8183636..bb28c25 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,10 @@ 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 @@ -15,7 +19,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - uses: actions/setup-node@v4 with: @@ -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 }}