Skip to content

Commit 6e8c6d7

Browse files
committed
ci: add Azure DevOps
1 parent 0c33823 commit 6e8c6d7

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
isomorphic-git-cors-proxy-0.0.0-development.tgz

azure-pipelines.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
jobs:
2+
- job: Linux
3+
4+
pool:
5+
vmImage: 'Ubuntu 16.04'
6+
7+
steps:
8+
- task: NodeTool@0
9+
inputs:
10+
versionSpec: '8.x'
11+
displayName: 'Install Node.js'
12+
13+
- script: npm ci
14+
displayName: 'Install dependencies'
15+
16+
- script: npm pack
17+
displayName: 'Prepare installable tarball'
18+
condition: succeededOrFailed()
19+
20+
- task: PublishBuildArtifacts@1
21+
displayName: 'Save npm-tarball.tgz'
22+
condition: and(succeededOrFailed(), ne(variables['system.pullrequest.isfork'], true))
23+
inputs:
24+
artifactName: 'npm-tarball.tgz'
25+
PathtoPublish: '$(System.DefaultWorkingDirectory)/isomorphic-git-cors-proxy-0.0.0-development.tgz'
26+
27+
- script: npm run semantic-release
28+
displayName: 'Publish to npm'
29+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
30+
env:
31+
GH_TOKEN: $(GITHUB_TOKEN)
32+
NPM_TOKEN: $(Npm.Token)

0 commit comments

Comments
 (0)