mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
use checkout config (#14682)
* use checkout config * remove block * style(azure-pipelines.yml): prettier yml file
This commit is contained in:
parent
ad363570c3
commit
ff8bcbac8d
@ -5,12 +5,10 @@
|
|||||||
name: ant design
|
name: ant design
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- master
|
batch: true
|
||||||
|
branches:
|
||||||
resources:
|
exclude:
|
||||||
repositories:
|
- gh-pages
|
||||||
- repository: self
|
|
||||||
fetchDepth: 1
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: test_
|
- job: test_
|
||||||
@ -18,7 +16,7 @@ jobs:
|
|||||||
vmImage: 'Ubuntu-16.04'
|
vmImage: 'Ubuntu-16.04'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
TEST_TYPE:
|
Lint:
|
||||||
TEST_TYPE: lint
|
TEST_TYPE: lint
|
||||||
dist-react@16:
|
dist-react@16:
|
||||||
REACT: 16
|
REACT: 16
|
||||||
@ -51,6 +49,9 @@ jobs:
|
|||||||
REACT: 15
|
REACT: 15
|
||||||
TEST_TYPE: test:node
|
TEST_TYPE: test:node
|
||||||
steps:
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
fetchDepth: 1
|
||||||
|
clean: false
|
||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '11.x'
|
versionSpec: '11.x'
|
||||||
@ -64,5 +65,5 @@ jobs:
|
|||||||
# 主分支,并且运行成功
|
# 主分支,并且运行成功
|
||||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||||
inputs:
|
inputs:
|
||||||
pathtoPublish: './package-lock.json'
|
pathtoPublish: './package-lock.json'
|
||||||
artifactName: lock
|
artifactName: lock
|
||||||
|
Loading…
Reference in New Issue
Block a user