From 784a9b742def4cd0e82d14efc9b33d02a3511720 Mon Sep 17 00:00:00 2001 From: Lukas Holzner Date: Fri, 4 Sep 2026 09:54:17 +0200 Subject: [PATCH] feat(ci): publish standalone runtime tarball with production node_modules --- .gitea/workflows/ci.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) 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"