加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Microsoft/TypeScript
克隆/下载
azure-pipelines.release.yml 2.70 KB
一键复制 编辑 原始数据 按行查看 历史
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: test
displayName: Test
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'
- job: build
displayName: Build
dependsOn: test
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: |
npx hereby LKG
npx hereby clean
node ./scripts/addPackageJsonGitHead.mjs package.json
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化