👷(ci) fix symlink to Cunningham when turbo cache is on

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.
This commit is contained in:
Nathan Vasse
2023-01-16 14:25:49 +01:00
committed by NathanVss
parent b07f9cc869
commit ba65b195b5

View File

@@ -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: