diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ceaadb087..807e410db 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -43,15 +43,14 @@ steps: sonar.cfamily.build-wrapper-output.bypass=true condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], 'False')) - - script: | - npm ci - npm run bootstrap + - script: npm ci && npm run bootstrap displayName: 'npm ci and bootstrap' - - script: | - npm test -- --coverage - npm run lint - displayName: 'npm test and lint' + - script: npm test -- --coverage + displayName: 'npm test' + + - script: npm run lint + displayName: 'npm trun lint' - script: npm run css:build displayName: 'build css' @@ -82,10 +81,14 @@ steps: # displayName: 'Publish Quality Gate Result' # condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], 'False')) - - script: | - npm run publish -- $(Npm.Publish.Version) --yes --concurrency 1 --force-publish - node ./scripts/publish-docs.js $(Github.Token) - node ./scripts/publish-changelog.js $(Github.Token) - node ./scripts/twitter.js $(Twitter.consumer_key) $(Twitter.consumer_secret) $(Twitter.access_token) $(Twitter.access_token_secret) + - script: npm run publish -- $(Npm.Publish.Version) --yes --concurrency 1 --force-publish displayName: 'lerna publish' condition: and(succeeded(), ne(variables['Npm.Publish.Version'], 'none')) + + - script: node ./scripts/publish-docs.js $(Github.Token) && node ./scripts/publish-changelog.js $(Github.Token) + displayName: 'push documentation and changelog' + condition: and(succeeded(), ne(variables['Npm.Publish.Version'], 'none')) + + - script: node ./scripts/twitter.js $(Twitter.consumer_key) $(Twitter.consumer_secret) $(Twitter.access_token) $(Twitter.access_token_secret) + displayName: 'Auto tweet' + condition: and(succeeded(), ne(variables['Npm.Publish.Version'], 'none')) diff --git a/package-lock.json b/package-lock.json index 8c0c96aa0..4c3a245ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5055,15 +5055,13 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true, - "optional": true + "dev": true }, "is-glob": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, - "optional": true, "requires": { "is-extglob": "^1.0.0" } @@ -13356,8 +13354,7 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "aproba": { "version": "1.2.0", @@ -13772,8 +13769,7 @@ "safe-buffer": { "version": "5.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -13829,7 +13825,6 @@ "version": "3.0.1", "bundled": true, "dev": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -13873,14 +13868,12 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "yallist": { "version": "3.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true } } }, @@ -36303,7 +36296,7 @@ }, "http-proxy-middleware": { "version": "0.18.0", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.18.0.tgz", + "resolved": "http://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.18.0.tgz", "integrity": "sha512-Fs25KVMPAIIcgjMZkVHJoKg9VcXcC1C8yb9JUgeDvVXY0S/zgVIhMb+qVswDIgtJe2DfckMSY2d6TuTEutlk6Q==", "dev": true, "requires": {