Skip to content

Commit

Permalink
Allow to skip yarn install (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
oeble authored Feb 21, 2023
1 parent 9d2cbb9 commit 16f1c1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ inputs:
workspace:
description: "Optional path to the rust workspace. Default: '.'"
default: '.'
skip-yarn:
description: "Set to true to disable automatic dependency installation with yarn. Default: 'false'"
default: 'false'
outputs:
rust-cache-hit:
description: "'true' if rust cache has been restored"
Expand Down Expand Up @@ -87,7 +90,7 @@ runs:
cargo install --git https://github.com/coral-xyz/anchor --tag ${{ inputs.anchor-version }} anchor-cli --locked
shell: bash
- name: yarn install
if: inputs.setup-node != null
if: inputs.setup-node != null && inputs.skip-yarn == 'false'
run: |
cd ${{ inputs.workspace }}
yarn install
Expand Down

0 comments on commit 16f1c1a

Please sign in to comment.