-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release pipeline to release-5.4 (#57513)
- Loading branch information
1 parent
db6b2a9
commit 992c705
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
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,72 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- release-* | ||
|
||
resources: | ||
repositories: | ||
- repository: 1esPipelines | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
|
||
extends: | ||
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines | ||
parameters: | ||
pool: | ||
name: TypeScript-AzurePipelines-EO | ||
image: 1ESPT-Mariner2.0 | ||
os: linux | ||
|
||
sdl: | ||
sourceAnalysisPool: | ||
name: TypeScript-AzurePipelines-EO | ||
image: 1ESPT-Windows2022 | ||
os: windows | ||
|
||
stages: | ||
- stage: buildStage | ||
displayName: Build Stage | ||
jobs: | ||
- job: build | ||
displayName: Build | ||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 1 | ||
fetchTags: false | ||
|
||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: 20.x | ||
displayName: 'Install Node' | ||
|
||
- script: | | ||
npm install -g `node -e 'console.log(JSON.parse(fs.readFileSync("package.json", "utf8")).packageManager)'` | ||
npm --version | ||
displayName: 'Install packageManager from package.json' | ||
- script: npm ci | ||
displayName: 'npm ci' | ||
|
||
- script: 'npm test' | ||
displayName: 'npm test' | ||
|
||
- script: | | ||
npx hereby LKG | ||
npx hereby clean | ||
npm pack | ||
displayName: 'LKG, clean, pack' | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
SourceFolder: ./ | ||
Contents: 'typescript-*.tgz' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
|
||
templateContext: | ||
outputs: | ||
- output: pipelineArtifact | ||
targetPath: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: tgz |