diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa1e7d25..5fb6ef4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,9 +49,9 @@ jobs: run: | npm ci npm run build - npm run pkg - mv bin/server-macos storage-api-macos-x86_64 - mv bin/server-linux storage-api-x86_64 + npm run pkg -- --targets node14-linux-x64,node14-macos-x64 --out-path bin + mv bin/supa-storage-macos storage-api-macos-x86_64 + mv bin/supa-storage-linux storage-api-x86_64 tar -czvf storage-api-linux-x64.tar.gz storage-api-x86_64 migrations/ tar -czvf storage-api-macos-x64.tar.gz storage-api-macos-x86_64 migrations/ - name: Upload x64 binary to release diff --git a/package.json b/package.json index 4c7cd65a..9410a337 100644 --- a/package.json +++ b/package.json @@ -71,11 +71,6 @@ }, "bin": "./dist/server.js", "pkg": { - "assets": "node_modules/pg-format/lib/reserved.js", - "outputPath": "bin", - "targets": [ - "node14-linux-x64", - "node14-macos-x64" - ] + "assets": "node_modules/pg-format/lib/reserved.js" } }