👷(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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user