Skip to content

Commit

Permalink
feat(ci): added azure pipeline config
Browse files Browse the repository at this point in the history
  • Loading branch information
brendon-stephens committed Jun 6, 2022
1 parent d6c268f commit 05daa3c
Show file tree
Hide file tree
Showing 4 changed files with 10,692 additions and 1,915 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry=https://pkgs.dev.azure.com/sunstone-advisory/connect-gateway-impl-bbpoc/_packaging/main/npm/registry/
always-auth=true
34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
trigger:
- main

pool:
vmImage: 'ubuntu-latest'

steps:
- checkout: self
persistCredentials: true

- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'

- task: npmAuthenticate@0
inputs:
workingFile: .npmrc
displayName: 'Authenticate npm'

- script: npm install
displayName: 'npm install'

- script: npm run build
displayName: 'npm run build'

- script: npx semantic-release
displayName: 'semantic release'
env:
GH_TOKEN: $(GitHubToken)
GIT_AUTHOR_NAME: $(Build.RequestedFor)
GIT_AUTHOR_EMAIL: $(Build.RequestedForEmail)
GIT_COMMITTER_NAME: Build Automation
GIT_COMMITTER_EMAIL: [email protected]
Loading

0 comments on commit 05daa3c

Please sign in to comment.