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 9796a80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
version: 8
run_install: |
- args: [--global, zx, '@daotl/traf-nx']
- args: [--global, zx, '@daotl/traf-nx@0.0.17-1']
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down 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]-1",
"@tsconfig/esm": "^1.0.5",
"@tsconfig/node20": "^20.1.2",
"@tsconfig/strictest": "^2.0.2",
Expand Down
8 changes: 4 additions & 4 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 9796a80

Please sign in to comment.