-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yaml
48 lines (41 loc) · 1.29 KB
/
azure-pipelines.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# TypeScript
# Step 1: Pull the code
# Step 2: Install the dependencies & package
# Step 3: Collect artifacts
trigger:
branches:
include:
- refs/tags/v*
- master
pool:
vmImage: ubuntu-latest
steps:
# Mirror to GitHub
- bash: |
git push --force --prune https://$(GITHUB_PAT)@github.com/$(REPO_PATH).git \
+refs/remotes/origin/*:refs/heads/* +refs/tags/*:refs/tags/*
displayName: "Mirror to GitHub"
# Setup NodeJS
- task: NodeTool@0
inputs:
versionSpec: "16.14.2"
displayName: "Install Node.js"
- script: |
buildVersionString=$(node -p "require('./package.json').version")
echo "##vso[task.setvariable variable=packageVersion;]$buildVersionString"
yarn config set network-timeout 300000
yarn install
node_modules/.bin/vsce package --yarn
displayName: "Run yarn install and package"
# - script: |
# yarn deploy-ms
# yarn deploy-vsx
# displayName: "Publish to Marketplace (MS & VSX)"
# condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
# env:
# VSCE_PAT: $(VSCE_PAT)
# OVSX_PAT: $(OVSX_PAT)
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: "$(System.DefaultWorkingDirectory)/xoj-playground-$(packageVersion).vsix"
artifactName: "VSIX"