From ba65b195b5fc51d1ec0bfddb84e2fb09e4bc0914 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Mon, 16 Jan 2023 14:25:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7(ci)=20fix=20symlink=20to=20Cunning?= =?UTF-8?q?ham=20when=20turbo=20cache=20is=20on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Had the situation where the symlink to the cunningham bin was not created on yarn build due to the fact that the tokens repo was not updated. The turbo just replayed logs output, but doing this prevent the symlink to be created from the package.json's build script. So, in order to make sure that the symlink always exists, I added it to the CI build job. --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fd17544..2217f91 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -88,7 +88,10 @@ jobs: command: yarn install --frozen-lockfile - run: name: Build packages - command: yarn build + # Symlinks to bins in the monorepo are not created by yarn, so we need to do it manually. + command: | + ln -sf ../../packages/tokens/dist/bin/Main.js node_modules/.bin/cunningham && + yarn build - persist_to_workspace: root: ~/cunningham paths: