8
8
workflow_dispatch :
9
9
inputs :
10
10
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)"
12
12
required : true
13
13
type : string
14
14
15
15
env :
16
- NODE_VERSION : ' 20 '
16
+ NODE_VERSION : " 20 "
17
17
18
18
jobs :
19
19
release-stable : # stable releases can only be manually triggered
@@ -24,11 +24,17 @@ jobs:
24
24
id-token : write
25
25
26
26
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 }}
27
33
- name : Check if actor is member of admin or client-libs team
28
34
id : team-check
29
35
uses : actions/github-script@v7
30
36
with :
31
- github-token : ${{ secrets.GITHUB_TOKEN }}
37
+ github-token : ${{ steps.app-token.outputs.token }}
32
38
script : |
33
39
const org = 'supabase'
34
40
const { actor } = context
@@ -57,21 +63,15 @@ jobs:
57
63
echo "You must be a member of @supabase/admin or @supabase/client-libs."
58
64
exit 1
59
65
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 }}
66
66
- uses : actions/checkout@v5
67
67
with :
68
68
fetch-depth : 0
69
69
70
70
- uses : actions/setup-node@v4
71
71
with :
72
72
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"
75
75
76
76
# Ensure npm 11.5.1 or later is installed for trusted publishing support
77
77
- name : Update npm
@@ -250,8 +250,8 @@ jobs:
250
250
uses : actions/setup-node@v4
251
251
with :
252
252
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"
255
255
256
256
# Ensure npm 11.5.1 or later is installed for trusted publishing support
257
257
- name : Update npm
@@ -279,7 +279,7 @@ jobs:
279
279
uses : ./.github/workflows/slack-notify.yml
280
280
secrets : inherit
281
281
with :
282
- subject : ' Stable Release'
282
+ subject : " Stable Release"
283
283
284
284
notify-canary-failure :
285
285
name : Notify Slack for Canary failure
@@ -288,4 +288,4 @@ jobs:
288
288
uses : ./.github/workflows/slack-notify.yml
289
289
secrets : inherit
290
290
with :
291
- subject : ' Canary Release'
291
+ subject : " Canary Release"
0 commit comments