@nx/workspace 18.3.0-canary.20240403-270788e → 18.3.0-canary.20240405-fc8d5ba

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/workspace",
3
- "version": "18.3.0-canary.20240403-270788e",
3
+ "version": "18.3.0-canary.20240405-fc8d5ba",
4
4
  "private": false,
5
5
  "description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
6
6
  "repository": {
@@ -61,13 +61,13 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@nx/devkit": "18.3.0-canary.20240403-270788e",
64
+ "@nx/devkit": "18.3.0-canary.20240405-fc8d5ba",
65
65
  "chalk": "^4.1.0",
66
66
  "enquirer": "~2.3.6",
67
67
  "tslib": "^2.3.0",
68
68
  "yargs-parser": "21.1.1",
69
- "nx": "18.3.0-canary.20240403-270788e",
70
- "@nrwl/workspace": "18.3.0-canary.20240403-270788e"
69
+ "nx": "18.3.0-canary.20240405-fc8d5ba",
70
+ "@nrwl/workspace": "18.3.0-canary.20240405-fc8d5ba"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public"
@@ -49,6 +49,8 @@ jobs:
49
49
  - script: npm install --prefix=$HOME/.local -g pnpm@8
50
50
  displayName: Install PNPM
51
51
  <% } %>- script: <%= packageManagerInstall %>
52
+ - script: git branch --track main origin/main
53
+ condition: eq(variables['Build.Reason'], 'PullRequest')
52
54
 
53
55
  - script: <%= packageManagerPrefix %> nx-cloud record -- nx format:check --base=$(BASE_SHA) --head=$(HEAD_SHA)
54
56
  - script: <%= packageManagerPrefix %> nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t lint test build<% if(hasE2E){ %> e2e-ci<% } %>
@@ -28,6 +28,7 @@ pipelines:
28
28
  - step:
29
29
  name: 'Build and test affected apps on "<%= mainBranch %>" branch changes'
30
30
  script:
31
+ - export NX_BRANCH=$BITBUCKET_BRANCH
31
32
  # Connect your workspace on <%= nxCloudHost %> and uncomment this to enable task distribution.
32
33
  # The "--stop-agents-after" is optional, but allows idle agents to shut down once the "<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>" targets have been requested
33
34
  # - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="<% if(hasE2E){ %>e2e-ci<% } else { %>build<% } %>"
@@ -22,6 +22,10 @@ jobs:
22
22
  - nx/set-shas:
23
23
  main-branch-name: '<%= mainBranch %>'
24
24
 
25
+ # Required for nx affected if we're on a branch
26
+ - run: git branch --track main origin/main
27
+ condition: eq(variables['Build.Reason'], 'PullRequest')
28
+
25
29
  - run: <%= packageManagerPrefix %> nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD
26
30
  - run: <%= packageManagerPrefix %> nx affected --base=$NX_BASE --head=$NX_HEAD -t lint test build<% if(hasE2E){ %> e2e-ci<% } %>
27
31
 
@@ -34,5 +34,8 @@ jobs:
34
34
  - run: <%= packageManagerInstall %>
35
35
  - uses: nrwl/nx-set-shas@v4
36
36
 
37
+ - run: git branch --track main origin/main
38
+ if: ${{ github.event_name == 'pull_request' }}
39
+
37
40
  - run: <%= packageManagerPrefix %> nx-cloud record -- nx format:check
38
41
  - run: <%= packageManagerPrefix %> nx affected -t lint test build<% if(hasE2E){ %> e2e-ci<% } %>