Skip to content

Commit

Permalink
Add an 'azure-pipelines.yml' file
Browse files Browse the repository at this point in the history
  • Loading branch information
kazssym committed Apr 14, 2020
1 parent 8c3310e commit 5e7df7a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# azure-pipelines.yml - configuration for Azure Pipelines
# Copyright (C) 2020 Kaz Nishimura
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
---
trigger:
- master
- release/*
- feature/*
stages:
- stage: Default
jobs:
- job: Build
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
- bash: |
npm test
displayName: Test
- task: PublishTestResults@2
condition: succeededOrFailed()
- stage: Release
dependsOn: Default
condition:
and(succeeded(),
startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))
jobs:
- job: Upload
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
- task: Npm@1
inputs:
command: publish
publishEndpoint: npmjs

0 comments on commit 5e7df7a

Please sign in to comment.