Skip to content

Commit

Permalink
Update to use working-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Sep 28, 2022
1 parent a8e9bc2 commit 536aba4
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 @@ -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 --prefix ${{ inputs.path }} build
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 536aba4

Please sign in to comment.