forked from billiegoose/cors-buster
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
32 lines (26 loc) · 968 Bytes
/
azure-pipelines.yml
File metadata and controls
32 lines (26 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '22.x'
displayName: 'Install Node.js'
- script: npm ci
displayName: 'Install dependencies'
- script: npm pack
displayName: 'Prepare installable tarball'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Save npm-tarball.tgz'
condition: and(succeededOrFailed(), ne(variables['system.pullrequest.isfork'], true))
inputs:
artifactName: 'npm-tarball.tgz'
PathtoPublish: '$(System.DefaultWorkingDirectory)/isomorphic-git-cors-proxy-0.0.0-development.tgz'
- script: npm run semantic-release
displayName: 'Publish to npm'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
env:
GH_TOKEN: $(GITHUB_TOKEN)
NPM_TOKEN: $(Npm.Token)