Skip to content

Commit

Permalink
ci(root): use @traf/nx calculated affected packages with "nx run-many…
Browse files Browse the repository at this point in the history
…" instead of "nx affected"
  • Loading branch information
NexZhu committed Dec 21, 2023
1 parent b10a51c commit 6c630a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 72 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: nx affected
- name: Nx
env:
INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_BUILDER: ${{ steps.docker-setup-buildx.outputs.name }}
Expand All @@ -96,4 +96,4 @@ jobs:
if [ '${{ github.ref }}' = 'refs/heads/main' ] && [ '${{ github.event_name }}' = 'push' ] && [ '${{ matrix.node-version }}' = '20.x' ]; then
targets="${targets} container"
fi
pnpm nx affected -t ${targets} -c ci --parallel 20 --batch
pnpm nx run-many -p ${{ steps.affected.outputs.projs }} -t ${targets} -c ci --parallel 20 --batch
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@nx/vite": "v17.2.5",
"@swc-node/register": "~1.6.8",
"@swc/core": "~1.3.101",
"@traf/nx": "npm:@daotl/traf-nx@^0.0.17",
"@traf/nx": "npm:@daotl/[email protected]-0",
"@tsconfig/esm": "^1.0.5",
"@tsconfig/node20": "^20.1.2",
"@tsconfig/strictest": "^2.0.2",
Expand Down
73 changes: 4 additions & 69 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c630a6

Please sign in to comment.