Skip to content

Commit

Permalink
Merge pull request #9 from adrianmg/patch-1
Browse files Browse the repository at this point in the history
Fixes the build when using a custom path
  • Loading branch information
natemoo-re authored Sep 28, 2022
2 parents 1907d98 + 536aba4 commit 031fced
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
path:
description: "Path of the directory containing your site"
required: false
default: ""
default: "."
node-version:
description: "The node version to use"
required: false
Expand Down Expand Up @@ -48,26 +48,31 @@ runs:
- name: Setup PNPM
if: ${{ steps.lockfile.outputs.PACKAGE_MANAGER == 'pnpm' }}
uses: pnpm/[email protected]
working-directory: ${{ inputs.path }}
with:
version: 7.x.x

- name: Setup Node
uses: actions/setup-node@v3
working-directory: ${{ inputs.path }}
with:
node-version: ${{ inputs.node-version }}
cache: ${{ steps.lockfile.outputs.PACKAGE_MANAGER }}

- name: Install
shell: "bash"
working-directory: ${{ inputs.path }}
run: $node_pm install

- name: Build
shell: "bash"
working-directory: ${{ inputs.path }}
env:
PACKAGE_MANAGER: ${{ steps.lockfile.outputs.PACKAGE_MANAGER }}
run: $node_pm run build

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
working-directory: ${{ inputs.path }}
with:
path: "${{ inputs.path }}dist/"
path: "dist/"

0 comments on commit 031fced

Please sign in to comment.