From 0a1b19c12efdd0202bff405aed0ed20547aedf70 Mon Sep 17 00:00:00 2001 From: Albert Hernandez Pellicer Date: Sat, 27 Jan 2024 10:20:18 +0100 Subject: [PATCH] ci: ensure dist main file exists --- .github/workflows/node.yml | 2 +- .husky/pre-push | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index be9dc25..edb3818 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -24,7 +24,7 @@ jobs: if: steps.cache-node-modules.outputs.cache-hit != 'true' run: npm ci - name: Build typescript 📦 - run: npm run build + run: npm run build && find dist/main.js - name: Lint code 💅 run: npm run lint - name: Run tests ✅ diff --git a/.husky/pre-push b/.husky/pre-push index 2198f37..f25c3af 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,2 +1,3 @@ npm run build +find dist/main.js npm run test