From c8a944c3864063ba51329c72e8653e6fd1aa31fb Mon Sep 17 00:00:00 2001 From: Chiro Hiro Date: Fri, 9 Jun 2023 13:52:51 +0700 Subject: [PATCH] Update Github action to build npm package (#14) * Update Github action to build npm package * Fix current working directory * Fix active directory issue --- .github/workflows/node.js.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a555a9c6..0a09d3e5 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -27,9 +27,10 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: "npm" + cache-dependency-path: ./zkdb/package-lock.json - name: Install Dependencies - run: npm ci + run: npm --prefix zkdb ci - name: Eslint check - run: npm run lint-check + run: npm --prefix zkdb run lint-check - name: Build Project - run: npm run build + run: npm --prefix zkdb run build