From dc9bdcb499dcd6cff3e617b78448aa75de97da91 Mon Sep 17 00:00:00 2001 From: Jesse Luoto Date: Thu, 15 Aug 2024 23:21:07 +0300 Subject: [PATCH] Add dist/ artifact to git release --- .gitignore | 3 ++- package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 26ccb15..ea6a3dd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ models output dist test-output -.env \ No newline at end of file +.env +dist.tar.gz \ No newline at end of file diff --git a/package.json b/package.json index de5b65e..563aa46 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "start": "tsx src/index.ts", "build": "pkgroll", - "deploy": "npm version patch && npm run build && npm publish && gh release create --generate-notes", + "deploy": "npm version patch && npm run build && npm publish && npm run deploy:create-github-release", + "deploy:create-github-release": "tar -czvf dist.tar.gz dist && gh release create v$npm_package_version --generate-notes dist.tar.gz", "test": "npm run test:unit && npm run test:e2e && npm run test:llm", "test:unit": "find src -name '*.test.ts' | xargs tsx --test", "test:e2e": "npm run build && find src -name '*.e2etest.ts' | xargs tsx --test --test-concurrency=1",