diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 994b362..a044a26 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -61,3 +61,11 @@ jobs: echo "//git.lholz.de/api/packages/naxos/npm/:_authToken=${TOKEN}" >> ~/.npmrc npm publish || echo "NPM package published or exists in registry" + + # Publish pre-bundled standalone runtime with production node_modules + npm prune --omit=dev + tar -czf naxos-api-runtime.tar.gz dist node_modules package.json + curl -s -X PUT \ + -H "Authorization: token ${TOKEN}" \ + --upload-file naxos-api-runtime.tar.gz \ + "${{ github.server_url }}/api/packages/naxos/generic/naxos-api/1.0.0/naxos-api-runtime.tar.gz" || echo "Runtime package already exists"