88 workflow_dispatch :
99 inputs :
1010 version_specifier :
11- description : ' Semver bump (patch|minor|major|pre*) or exact version (v1.2.3)'
11+ description : " Semver bump (patch|minor|major|pre*) or exact version (v1.2.3)"
1212 required : true
1313 type : string
1414
1515env :
16- NODE_VERSION : ' 20 '
16+ NODE_VERSION : " 20 "
1717
1818jobs :
1919 release-stable : # stable releases can only be manually triggered
@@ -24,11 +24,17 @@ jobs:
2424 id-token : write
2525
2626 steps :
27+ - name : Generate token
28+ id : app-token
29+ uses : actions/create-github-app-token@v2
30+ with :
31+ app-id : ${{ secrets.APP_ID }}
32+ private-key : ${{ secrets.PRIVATE_KEY }}
2733 - name : Check if actor is member of admin or client-libs team
2834 id : team-check
2935 uses : actions/github-script@v7
3036 with :
31- github-token : ${{ secrets.GITHUB_TOKEN }}
37+ github-token : ${{ steps.app-token.outputs.token }}
3238 script : |
3339 const org = 'supabase'
3440 const { actor } = context
@@ -57,21 +63,15 @@ jobs:
5763 echo "You must be a member of @supabase/admin or @supabase/client-libs."
5864 exit 1
5965
60- - name : Generate token
61- id : app-token
62- uses : actions/create-github-app-token@v2
63- with :
64- app-id : ${{ secrets.APP_ID }}
65- private-key : ${{ secrets.PRIVATE_KEY }}
6666 - uses : actions/checkout@v5
6767 with :
6868 fetch-depth : 0
6969
7070 - uses : actions/setup-node@v4
7171 with :
7272 node-version : ${{ env.NODE_VERSION }}
73- cache : ' npm'
74- registry-url : ' https://registry.npmjs.org'
73+ cache : " npm"
74+ registry-url : " https://registry.npmjs.org"
7575
7676 # Ensure npm 11.5.1 or later is installed for trusted publishing support
7777 - name : Update npm
@@ -250,8 +250,8 @@ jobs:
250250 uses : actions/setup-node@v4
251251 with :
252252 node-version : ${{ env.NODE_VERSION }}
253- cache : ' npm'
254- registry-url : ' https://registry.npmjs.org'
253+ cache : " npm"
254+ registry-url : " https://registry.npmjs.org"
255255
256256 # Ensure npm 11.5.1 or later is installed for trusted publishing support
257257 - name : Update npm
@@ -279,7 +279,7 @@ jobs:
279279 uses : ./.github/workflows/slack-notify.yml
280280 secrets : inherit
281281 with :
282- subject : ' Stable Release'
282+ subject : " Stable Release"
283283
284284 notify-canary-failure :
285285 name : Notify Slack for Canary failure
@@ -288,4 +288,4 @@ jobs:
288288 uses : ./.github/workflows/slack-notify.yml
289289 secrets : inherit
290290 with :
291- subject : ' Canary Release'
291+ subject : " Canary Release"
0 commit comments