Skip to content

Commit

Permalink
adding dynamic changesets to fix variable size PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackDeRose committed Feb 16, 2024
1 parent 76383e8 commit 90e6ef0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
node-version-file: .nvmrc
cache: pnpm
- name: Start Agents
run: npx nx-cloud start-ci-run --distribute-on="12 linux-medium-js"
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Run Tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
node-version-file: .nvmrc
cache: pnpm
- name: Start Agents
run: npx nx-cloud start-ci-run --distribute-on="12 linux-medium-js"
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Get base and head commits for `nx affected`
Expand Down
4 changes: 4 additions & 0 deletions .nx/workflows/dynamic-changesets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
distribute-on:
small-changeset: 8 linux-medium
medium-changeset: 10 linux-medium
large-changeset: 12 linux-medium

0 comments on commit 90e6ef0

Please sign in to comment.