@@ -23,14 +23,15 @@ jobs:
23
23
with :
24
24
node-version : ${{ matrix.node }}
25
25
26
+ - run : |
27
+ npm ci
28
+ npm run build
29
+
26
30
- name : Get version before
27
31
run : echo "VERSION_BEFORE=$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .name -r)" >> $GITHUB_ENV
28
32
29
33
- name : Release on GitHub
30
- run : npx semantic-release -p \
31
- @semantic-release/commit-analyzer \
32
- @semantic-release/github \
33
- @semantic-release/release-notes-generator
34
+ run : npx semantic-release
34
35
env :
35
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
37
@@ -91,10 +92,10 @@ jobs:
91
92
if : env.HAS_NEW_RELEASE == 1
92
93
run : |
93
94
npm ci
94
- npm run dist
95
- tar -czvf pg-api -linux.tar.gz -C ./bin pg-api -linux
96
- tar -czvf pg-api -macos.tar.gz -C ./bin pg-api -macos
97
- tar -czvf pg-api -windows.tar.gz -C ./bin pg-api -win.exe
95
+ npm run pkg
96
+ tar -czvf postgres-meta -linux.tar.gz -C ./bin postgres-meta -linux
97
+ tar -czvf postgres-meta -macos.tar.gz -C ./bin postgres-meta -macos
98
+ tar -czvf postgres-meta -windows.tar.gz -C ./bin postgres-meta -win.exe
98
99
99
100
- name : Get upload url
100
101
if : env.HAS_NEW_RELEASE == 1
@@ -107,8 +108,8 @@ jobs:
107
108
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108
109
with :
109
110
upload_url : ${{ env.UPLOAD_URL }}
110
- asset_path : ./pg-api -linux.tar.gz
111
- asset_name : pg-api -linux.tar.gz
111
+ asset_path : ./postgres-meta -linux.tar.gz
112
+ asset_name : postgres-meta -linux.tar.gz
112
113
asset_content_type : application/gzip
113
114
114
115
- name : Upload macos release asset
@@ -118,8 +119,8 @@ jobs:
118
119
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
119
120
with :
120
121
upload_url : ${{ env.UPLOAD_URL }}
121
- asset_path : ./pg-api -macos.tar.gz
122
- asset_name : pg-api -macos.tar.gz
122
+ asset_path : ./postgres-meta -macos.tar.gz
123
+ asset_name : postgres-meta -macos.tar.gz
123
124
asset_content_type : application/gzip
124
125
125
126
- name : Upload windows release asset
@@ -129,8 +130,8 @@ jobs:
129
130
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
130
131
with :
131
132
upload_url : ${{ env.UPLOAD_URL }}
132
- asset_path : ./pg-api -windows.tar.gz
133
- asset_name : pg-api -windows.tar.gz
133
+ asset_path : ./postgres-meta -windows.tar.gz
134
+ asset_name : postgres-meta -windows.tar.gz
134
135
asset_content_type : application/gzip
135
136
136
137
- name : Get version
0 commit comments