Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
Read GitHub user information from secure file
  • Loading branch information
shuebner20 committed Jul 25, 2021
1 parent 23bc356 commit 81ff31e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion azure-pipelines.yml
Expand Up @@ -13,7 +13,19 @@ steps:
- checkout: self
clean: true
persistCredentials: true
displayName: 'Check out branch'
displayName: 'check out branch'

- task: DownloadSecureFile@1
inputs:
secureFile: 'github-user-options.json'
name: GitHubUserOptions
displayName: 'retrieve GitHub user options'

- task: oneLuckiDevJson2Variable@1
inputs:
jsonFile: '$(GitHubUserOptions.secureFilePath)'
shouldPrefixVariables: false
displayName: 'parse GitHub user options'

- task: NodeTool@0
inputs:
Expand All @@ -25,6 +37,8 @@ steps:
displayName: 'npm install'

- script: |
git config --global user.email '$(gitUserEmail)'
git config --global user.name '$(gitUserName)'
npm version patch -m 'Bump version to %s [skip ci]'
displayName: 'npm bump version'

Expand Down

0 comments on commit 81ff31e

Please sign in to comment.