feat(ci): publish standalone runtime tarball with production node_modules
CI & Test NaxOS Management API / test (push) Successful in 14m53s
CI & Test NaxOS Management API / test (push) Successful in 14m53s
This commit is contained in:
@@ -61,3 +61,11 @@ jobs:
|
|||||||
|
|
||||||
echo "//git.lholz.de/api/packages/naxos/npm/:_authToken=${TOKEN}" >> ~/.npmrc
|
echo "//git.lholz.de/api/packages/naxos/npm/:_authToken=${TOKEN}" >> ~/.npmrc
|
||||||
npm publish || echo "NPM package published or exists in registry"
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user