From ac58035a9443dbdb6c15c49ef2ee95e18793de96 Mon Sep 17 00:00:00 2001 From: Samrith Shankar Date: Thu, 7 Dec 2023 01:47:56 +0530 Subject: [PATCH] Update action.yml --- action.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 3ad39f7..06861a0 100644 --- a/action.yml +++ b/action.yml @@ -22,6 +22,7 @@ runs: steps: - name: Check lockfiles shell: "bash" + working-directory: ${{ inputs.path }} env: INPUT_PM: ${{ inputs.package-manager }} run: | @@ -82,17 +83,16 @@ runs: - name: Install shell: "bash" - run: | - cd ${{ inputs.path }} - $PACKAGE_MANAGER install + working-directory: ${{ inputs.path }} + run: $PACKAGE_MANAGER install - name: Build shell: "bash" - run: | - cd ${{ inputs.path }} - $PACKAGE_MANAGER run build + working-directory: ${{ inputs.path }} + run: $PACKAGE_MANAGER run build - name: Upload Pages Artifact uses: actions/upload-pages-artifact@v1 + working-directory: ${{ inputs.path }} with: - path: "${{ inputs.path }}/dist/" + path: "dist"