Skip to content

Commit

Permalink
Set working directory when running yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
lzm0 committed May 21, 2024
1 parent eb66674 commit 618378d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yarn/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ runs:
- name: Use Yarn Cache
uses: actions/cache@v4
id: yarn-cache
working-directory: ${{ inputs.working-directory }}
with:
path: ${{ env.CACHE_DIR_YARN }}
key: yarn-${{ runner.os }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/{1}', inputs.working-directory, 'yarn.lock')) }}
Expand All @@ -140,6 +141,7 @@ runs:
- name: Set up yarn credentials
if: inputs.npm-username && inputs.npm-password
shell: bash
working-directory: ${{ inputs.working-directory }}
env:
NPM_USER: ${{ inputs.npm-username }}
NPM_PASSWORD: ${{ inputs.npm-password }}
Expand Down

0 comments on commit 618378d

Please sign in to comment.