azure-function-log-intercept
Version:
Add console.log support to Azure Functions
35 lines (30 loc) • 666 B
YAML
trigger:
- master
pr: none
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '22.x'
displayName: 'Install Node.js'
- script: 'npm install'
displayName: 'Install Packages'
- task: Npm@1
displayName: 'Static Analysis'
inputs:
customCommand: 'run quality'
command: 'custom'
- task: Npm@1
displayName: 'Tests'
inputs:
customCommand: 'test'
command: 'custom'
- task: Bash@3
env:
NPM_TOKEN: $(NPM_TOKEN)
inputs:
script: |
printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}\n" >> ./.npmrc
npm publish
targetType: 'inline'