From 3a52886d820724dc2d524c829124caeffe2bd449 Mon Sep 17 00:00:00 2001 From: Teppo Jalava Date: Thu, 17 Feb 2022 10:34:37 +0200 Subject: [PATCH] Enable production-deps for yarn>1 --- yarn-install/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yarn-install/action.yml b/yarn-install/action.yml index 7a4ed06..c091eca 100644 --- a/yarn-install/action.yml +++ b/yarn-install/action.yml @@ -65,5 +65,10 @@ runs: yarn --frozen-lockfile --ignore-scripts fi else - yarn --immutable + if [ ${{ inputs.dependencies }} == "production" ]; then + yarn plugin import workspace-tools + yarn workspaces focus -A --production + else + yarn --immutable + fi fi