fix: fix root start script (#5032)
Fixes #5022 See https://nx.dev/recipes/running-tasks/root-level-scripts#setup
This commit is contained in:
2
.github/workflows/ci-chromatic.yaml
vendored
2
.github/workflows/ci-chromatic.yaml
vendored
@ -41,4 +41,4 @@ jobs:
|
||||
- name: Publish to Chromatic
|
||||
run: |
|
||||
cd packages/twenty-front
|
||||
yarn nx chromatic:ci
|
||||
npx nx chromatic:ci
|
||||
|
||||
2
.github/workflows/ci-chrome-extension.yaml
vendored
2
.github/workflows/ci-chrome-extension.yaml
vendored
@ -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
|
||||
|
||||
2
.github/workflows/ci-docs.yaml
vendored
2
.github/workflows/ci-docs.yaml
vendored
@ -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
|
||||
|
||||
4
.github/workflows/ci-front.yaml
vendored
4
.github/workflows/ci-front.yaml
vendored
@ -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
|
||||
|
||||
8
.github/workflows/ci-server.yaml
vendored
8
.github/workflows/ci-server.yaml
vendored
@ -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
|
||||
|
||||
2
.github/workflows/ci-utils.yaml
vendored
2
.github/workflows/ci-utils.yaml
vendored
@ -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 }}
|
||||
|
||||
2
.github/workflows/ci-website.yaml
vendored
2
.github/workflows/ci-website.yaml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user