-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
123 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,48 @@ | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
variables: | ||
NodeVersion: 18 | ||
FORCE_COLOR: 1 | ||
steps: | ||
- checkout: self | ||
persistCredentials: true | ||
- template: templates/build.yaml | ||
- script: 'node common/scripts/install-run-rush.js version --bump --version-policy BOGUS --target-branch $(Build.SourceBranchName)' | ||
displayName: 'Rush Version' | ||
- script: 'node common/scripts/install-run-rush.js publish --apply --publish --include-all --npm-auth-token $(npmToken)' | ||
displayName: 'Rush Publish' | ||
- name: SourceBranch | ||
value: $[ replace(replace(resources.repositories.self.ref, 'refs/heads/', ''), 'refs/pull/', 'refs/remotes/pull/') ] | ||
|
||
resources: | ||
repositories: | ||
- repository: RushstackMainRepo | ||
type: github | ||
name: Microsoft/rushstack | ||
endpoint: 'GitHub (Rushbot)' | ||
- repository: 1esPipelines | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
|
||
extends: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines | ||
parameters: | ||
pool: | ||
name: Azure-Pipelines-1ESPT-ExDShared | ||
os: windows | ||
stages: | ||
- stage: | ||
jobs: | ||
- job: | ||
pool: | ||
name: publish-rushstack | ||
os: linux | ||
templateContext: | ||
outputs: | ||
- output: pipelineArtifact | ||
targetPath: $(Build.ArtifactStagingDirectory)/published-versions | ||
artifactName: published-versions | ||
steps: | ||
- checkout: self | ||
persistCredentials: true | ||
path: tsdoc | ||
|
||
- template: /common/config/azure-pipelines/templates/install-node.yaml@self | ||
|
||
- template: /common/config/azure-pipelines/templates/build.yaml@self | ||
|
||
- template: /common/config/azure-pipelines/templates/publish.yaml@self | ||
parameters: | ||
VersionPolicyName: noRush | ||
BranchName: $(SourceBranch) | ||
|
||
- template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use Node $(NodeVersion).x' | ||
inputs: | ||
versionSpec: '$(NodeVersion).x' | ||
checkLatest: true | ||
- template: ./configure-git.yaml | ||
- script: 'git config --local user.email rushbot@users.noreply.github.com' | ||
displayName: 'git config email' | ||
workingDirectory: '$(Agent.BuildDirectory)/tsdoc' | ||
|
||
- script: 'git config --local user.name Rushbot' | ||
displayName: 'git config name' | ||
workingDirectory: '$(Agent.BuildDirectory)/tsdoc' | ||
|
||
- script: 'node common/scripts/install-run-rush.js change --verify' | ||
displayName: 'Verify Change Logs' | ||
- script: 'node common/scripts/install-run-rush.js check' | ||
displayName: 'Rush Check' | ||
workingDirectory: '$(Agent.BuildDirectory)/tsdoc' | ||
|
||
- script: 'node common/scripts/install-run-rush.js install' | ||
displayName: 'Rush Install' | ||
workingDirectory: '$(Agent.BuildDirectory)/tsdoc' | ||
|
||
- script: 'node common/scripts/install-run-rush.js retest --verbose --production' | ||
displayName: 'Rush retest' | ||
env: | ||
# Prevent time-based browserslist update warning | ||
# See https://github.com/microsoft/rushstack/issues/2981 | ||
BROWSERSLIST_IGNORE_OLD_DATA: 1 | ||
workingDirectory: '$(Agent.BuildDirectory)/tsdoc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
parameters: | ||
- name: BranchName | ||
type: string | ||
default: $(Build.SourceBranchName) | ||
|
||
steps: | ||
- script: 'node common/scripts/install-run-rush.js version --bump --version-policy BOGUS --target-branch ${{ parameters.BranchName }}' | ||
displayName: 'Rush Version' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
parameters: | ||
- name: NodeMajorVersion | ||
type: number | ||
default: 18 | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '${{ parameters.NodeMajorVersion }}.x' | ||
displayName: 'Install Node.js ${{ parameters.NodeMajorVersion }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
steps: | ||
- script: 'node common/scripts/install-run-rush.js version --bump --version-policy tsdoc --target-branch $(Build.SourceBranchName)' | ||
displayName: 'Rush Version' | ||
workingDirectory: '$(Agent.BuildDirectory)/tsdoc' | ||
|
||
- script: 'node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch $(Build.SourceBranchName) --add-commit-details --set-access-level public' | ||
displayName: 'Rush Publish' | ||
env: | ||
NPM_AUTH_TOKEN: $(npmToken) | ||
workingDirectory: '$(Agent.BuildDirectory)/tsdoc' |
28 changes: 28 additions & 0 deletions
28
common/config/azure-pipelines/templates/record-published-versions.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
steps: | ||
- checkout: RushstackMainRepo | ||
path: rushstack | ||
|
||
- script: 'git config --local user.email rushbot@users.noreply.github.com' | ||
displayName: 'git config email' | ||
workingDirectory: '$(Agent.BuildDirectory)/rushstack' | ||
|
||
- script: 'git config --local user.name Rushbot' | ||
displayName: 'git config name' | ||
workingDirectory: '$(Agent.BuildDirectory)/rushstack' | ||
|
||
- script: 'node common/scripts/install-run-rush.js install --to repo-toolbox' | ||
displayName: 'Rush Install (rushstack)' | ||
workingDirectory: '$(Agent.BuildDirectory)/rushstack' | ||
|
||
- script: 'node common/scripts/install-run-rush.js build --verbose --production --to repo-toolbox' | ||
displayName: 'Rush Rebuild (rushstack)' | ||
workingDirectory: '$(Agent.BuildDirectory)/rushstack' | ||
|
||
- script: 'node $(Agent.BuildDirectory)/rushstack/repo-scripts/repo-toolbox/lib/start.js record-versions --out-file $(Build.ArtifactStagingDirectory)/published-versions/published-versions.json' | ||
displayName: 'Record Published Versions' | ||
workingDirectory: '$(Agent.BuildDirectory)/tsdoc' | ||
|
||
# Published by the 1ES template | ||
# - publish: $(Build.ArtifactStagingDirectory)/published-versions | ||
# artifact: published-versions | ||
# displayName: 'Publish Artifact: published-versions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters