diff --git a/action.yml b/action.yml index 1fbac9a..30b9388 100644 --- a/action.yml +++ b/action.yml @@ -15,6 +15,10 @@ inputs: type: string required: false default: "https://dashboard.useparagon.com" + subfolder: + type: string + required: false + default: '.' runs: using: 'composite' @@ -73,7 +77,7 @@ runs: with: node-version: v18.17.1 - - name: Install para CLI + - name: Install para CLI globally shell: bash run: | npm install -g @useparagon/cli @@ -109,14 +113,16 @@ runs: - name: Build Paragraph project shell: bash + working-directory: ${{ inputs.subfolder }} run: | - para install - para build + npx para install + npx para build - name: Push to Paragon shell: bash + working-directory: ${{ inputs.subfolder }} if: github.event_name == 'push' && steps.validate.outputs.valid == 'true' - run: para push + run: npx para push # Post steps - name: Update success status in Paragon