@@ -23,14 +23,15 @@ jobs:
2323 with :
2424 node-version : ${{ matrix.node }}
2525
26+ - run : |
27+ npm ci
28+ npm run build
29+
2630 - name : Get version before
2731 run : echo "VERSION_BEFORE=$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .name -r)" >> $GITHUB_ENV
2832
2933 - 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
3435 env :
3536 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3637
@@ -91,10 +92,10 @@ jobs:
9192 if : env.HAS_NEW_RELEASE == 1
9293 run : |
9394 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
9899
99100 - name : Get upload url
100101 if : env.HAS_NEW_RELEASE == 1
@@ -107,8 +108,8 @@ jobs:
107108 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108109 with :
109110 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
112113 asset_content_type : application/gzip
113114
114115 - name : Upload macos release asset
@@ -118,8 +119,8 @@ jobs:
118119 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
119120 with :
120121 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
123124 asset_content_type : application/gzip
124125
125126 - name : Upload windows release asset
@@ -129,8 +130,8 @@ jobs:
129130 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
130131 with :
131132 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
134135 asset_content_type : application/gzip
135136
136137 - name : Get version
0 commit comments