Skip to content

Commit

Permalink
fix: Separate --enforce-lockfile to two discrete steps
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Apr 22, 2024
1 parent 8c8dd42 commit 3396e58
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ runs:
run: dart pub global activate melos ${{ inputs.melos-version }}
shell: bash
- name: 'Run melos bootstrap'
if: ${{ inputs.run-bootstrap == 'true' }}
run: dart pub global run melos bootstrap${{ inputs.enforce-lock-file == 'true' ? ' --enforce-lock-file' : '' }}
if: ${{ inputs.run-bootstrap == 'true' && inputs.enforce-lockfile == 'true' }}
run: dart pub global run melos bootstrap
shell: bash
- name: 'Run melos bootstrap --enforce-lockfile'
if: ${{ inputs.run-bootstrap == 'true' && inputs.enforce-lockfile != 'true' }}
run: dart pub global run melos bootstrap --enforce-lockfile
shell: bash
- name: 'Add melos to PATH'
run: command -v melos || echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
Expand Down

0 comments on commit 3396e58

Please sign in to comment.