-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
40 lines (34 loc) · 1.01 KB
/
azure-pipelines.yml
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
variables:
PUBLISHPASS: $(PUBLISHKEY)
trigger:
- main
pool:
vmImage: "ubuntu-latest"
jobs:
- job: asteroid_pipe
cancelTimeoutInMinutes: 15
steps:
- task: NodeTool@0
inputs:
versionSpec: "12.x"
displayName: "Install Node.js"
- task: DownloadSecureFile@1
name: mySecureFile
inputs:
secureFile: "a24e2527-2352-470a-a26a-6d7bd4b02b6d"
retryCount: "2"
- task: InstallSSHKey@0
inputs:
knownHostsEntry: "$(PUBLICKEY)"
sshPublicKey: "$(PUBLICKEY)"
sshPassphrase: "$(PUBLISHPASS)"
sshKeySecureFile: "a24e2527-2352-470a-a26a-6d7bd4b02b6d"
- script: |
cd ./react-gh/
git config --global --add url."[email protected]:".insteadOf "https://github.com/"
git config --local user.email "[email protected]"
git config --local user.name "70mm1"
npm config set legacy-peer-deps true
npm install --no-audit --progress=false
npm run deploy
displayName: "npm install and deploy"