From bbcf3cce34d4e39b84a07b7d1b89182fe08c77b2 Mon Sep 17 00:00:00 2001 From: Subramanya Chakravarthy Date: Thu, 4 Nov 2021 10:46:40 +0530 Subject: [PATCH 1/2] add option to enable yarn 2 --- src/commands/yarn_install.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/commands/yarn_install.yml b/src/commands/yarn_install.yml index 39ec8fb..3c49246 100644 --- a/src/commands/yarn_install.yml +++ b/src/commands/yarn_install.yml @@ -9,8 +9,18 @@ parameters: description: The path to the yarn cache folder. Defaults to /tmp/yarn type: string default: "/tmp/yarn" + berry: + description: use yarn 2+ version for installing dependencies + type: boolean + default: false steps: + - when: + condition: < + steps: + - run: + name: Set yarn version to berry + command: yarn set version berry - when: condition: <> steps: From 3f568e37944a8168f9d2df7bc4cf11291c8412cd Mon Sep 17 00:00:00 2001 From: Subramanya Chakravarthy Date: Thu, 4 Nov 2021 10:48:31 +0530 Subject: [PATCH 2/2] fix parma --- src/commands/yarn_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/yarn_install.yml b/src/commands/yarn_install.yml index 3c49246..1d1eb58 100644 --- a/src/commands/yarn_install.yml +++ b/src/commands/yarn_install.yml @@ -16,7 +16,7 @@ parameters: steps: - when: - condition: < + condition: <> steps: - run: name: Set yarn version to berry