Skip to content

Commit 2323f74

Browse files
Add origin
1 parent 03d1bc6 commit 2323f74

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

ci/build-common-packages.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,21 @@ jobs:
1818
- script: npm i -g [email protected] --force
1919
displayName: Use npm version 8.19.4
2020

21-
- script: |
22-
npm install
21+
- script: npm install
2322
displayName: Npm install
2423

25-
- script: |
26-
npm run build
24+
- script: npm run build
2725
displayName: Build Common Npm packages
2826

29-
- script: |
30-
node ./ci/verify-source-changes.js
27+
- script: node ./ci/verify-source-changes.js
3128
displayName: Verify task source changes
3229
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/main'))
3330

3431
- script: node ./ci/check-versions.js
3532
displayName: Verify tasks' versions
3633
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/main'))
3734

38-
- script: |
39-
npm run test
35+
- script: npm run test
4036
displayName: Test Common Npm packages
4137

4238
- task: PublishTestResults@2
@@ -52,8 +48,7 @@ jobs:
5248
summaryFileLocation: $(System.DefaultWorkingDirectory)/test-results/*coverage.xml
5349

5450
# For CI runs on master, automatically publish packages
55-
- bash: |
56-
npm run publish
51+
- bash: npm run publish
5752
condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), eq(variables['Agent.OS'], 'Windows_NT'))
5853
env:
5954
NPM_TOKEN: $(npm-automation.token)

ci/check-versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const packages = [
2222
];
2323

2424
execSync('git fetch origin main');
25-
const gitDiffResult = execSync('git --no-pager diff --name-only main', { encoding: 'utf8' }).split('\n');
25+
const gitDiffResult = execSync('git --no-pager diff --name-only origin/main', { encoding: 'utf8' }).split('\n');
2626
const changedFolders = new Set();
2727

2828
for (const filePath of gitDiffResult) {

0 commit comments

Comments
 (0)