fix: fix root start script (#5032)

Fixes #5022

See https://nx.dev/recipes/running-tasks/root-level-scripts#setup
This commit is contained in:
Thaïs
2024-04-19 18:28:02 +02:00
committed by GitHub
parent 43f0b11aab
commit d3170fc1ea
28 changed files with 94 additions and 79 deletions

View File

@ -41,4 +41,4 @@ jobs:
- name: Publish to Chromatic
run: |
cd packages/twenty-front
yarn nx chromatic:ci
npx nx chromatic:ci

View File

@ -69,4 +69,4 @@ jobs:
key: root-node_modules-${{hashFiles('yarn.lock')}}
restore-keys: root-node_modules-
- name: Chrome Extension / Run build
run: yarn nx build twenty-chrome-extension
run: npx nx build twenty-chrome-extension

View File

@ -28,7 +28,7 @@ jobs:
- name: Docs / Install Dependencies
run: yarn
- name: Docs / Build Documentation
run: yarn nx build twenty-docs
run: npx nx build twenty-docs
vale:
name: runner / vale
runs-on: ubuntu-latest

View File

@ -77,7 +77,7 @@ jobs:
- name: Run storybook tests
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"STORYBOOK_SCOPE=pages npx nx run twenty-front:storybook:static" \
"STORYBOOK_SCOPE=pages npx nx run twenty-front:storybook:static:ci" \
"npx wait-on tcp:6006 && STORYBOOK_SCOPE=pages npx nx run twenty-front:storybook:test"
front-modules-sb-test:
needs: front-yarn-install
@ -115,7 +115,7 @@ jobs:
- name: Run storybook tests
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"STORYBOOK_SCOPE=modules npx nx run twenty-front:storybook:static" \
"STORYBOOK_SCOPE=modules npx nx run twenty-front:storybook:static:ci" \
"npx wait-on tcp:6006 && STORYBOOK_SCOPE=modules npx nx run twenty-front:storybook:test"
front-lint-tsc:
needs: front-yarn-install

View File

@ -36,14 +36,14 @@ jobs:
- name: Server / Install Dependencies
run: yarn
- name: Server / Run linter
run: yarn nx lint twenty-server
run: npx nx lint twenty-server
- name: Server / Run jest tests
run: yarn nx test:unit twenty-server
run: npx nx test:unit twenty-server
- name: Server / Build
run: yarn nx build twenty-server
run: npx nx build twenty-server
- name: Server / Write .env
run: |
cd packages/twenty-server
cp .env.example .env
- name: Worker / Run
run: MESSAGE_QUEUE_TYPE=sync yarn nx worker twenty-server
run: MESSAGE_QUEUE_TYPE=sync npx nx worker twenty-server

View File

@ -28,6 +28,6 @@ jobs:
- name: Utils / Install Dependencies
run: yarn
- name: Utils / Run Danger.js
run: cd packages/twenty-utils && yarn nx danger:ci
run: cd packages/twenty-utils && npx nx danger:ci
env:
DANGER_GITHUB_API_TOKEN: ${{ github.token }}

View File

@ -26,4 +26,4 @@ jobs:
- name: Website / Install Dependencies
run: yarn
- name: Website / Build Website
run: yarn nx build twenty-website
run: npx nx build twenty-website