From e05606681424863e6a4aaf97f6a7a3f8856503fc Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 17 May 2021 17:44:37 +0100 Subject: [PATCH] Fix build failure when using Yarn See https://github.com/davwheat/flarum-ext-custom-sidenav-links/runs/2602845179 --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index be14308..ec1ae35 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -56,7 +56,11 @@ npm i -g npm@^7 if [[ "$INPUT_PACKAGE_MANAGER" == "npm" ]]; then npm ci else + # Yarn is usually installed as part of `actions/setup-node` + # so let's ignore any errors here. + set +e npm i -g yarn + set -e yarn install --frozen-lockfile fi