From f14123e7a6647a13795aeb21941e6db6e685f82f Mon Sep 17 00:00:00 2001 From: luckyaxl Date: Sun, 10 Dec 2023 05:52:36 +0700 Subject: [PATCH] chore: update workflow --- .github/workflows/publish.yml | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a86d01d..9fea368 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,6 +37,12 @@ jobs: with: node-version: "18" registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm install + + - name: Build TypeScript + run: npm run build - name: List Dist Directory run: ls -l dist diff --git a/package.json b/package.json index e4cd375..242131c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.4", "description": "Automated bot scraper to streamline data extraction from GitHub and SonarQube", "scripts": { - "build": "npx tsc" + "build": "npx tsc --outDir dist" }, "bin": { "sonargit": "./dist/index.js"