Skip to content

Commit

Permalink
fix setup action for yarn modern
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin authored Feb 20, 2024
1 parent 07d5767 commit 4642a50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ runs:
- name: yarn install
shell: bash
if: inputs.packageManager == 'yarn'
if: inputs.packageManager == 'yarn' && inputs.packageManagerVersion === ''
run: yarn install --ignore-engines --frozen-lockfile --immutable
working-directory: ${{ inputs.workingDirectory }}

- name: modern yarn install
shell: bash
if: inputs.packageManager == 'yarn-modern'
run: corepack enable && yarn install
if: inputs.packageManager == 'yarn' && inputs.packageManagerVersion === 'modern'
run: corepack enable && yarn
working-directory: ${{ inputs.workingDirectory }}

- name: pnpm install
Expand Down

0 comments on commit 4642a50

Please sign in to comment.