-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
56 lines (32 loc) · 1.12 KB
/
action.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
### TypeScript requires Node.js, which
### Chocolatey will install before TS.
### Help: https://typescriptlang.org/docs/handbook/typescript-in-5-minutes.html
### By using this Action, you agree to
### the terms of the Apache License 2.0.
### apache.org/licenses/LICENSE-2.0.txt
name: Setup TypeScript
description: Install TypeScript and add it to the PATH
branding:
icon: 'box'
color: 'white'
on: push
jobs:
install:
runs-on: windows-${{ matrix.os }}
strategy:
matrix:
os: ['2022', '2019']
steps:
- name: Install using choco
run: choco install typescript --allow-unofficial --no-progress --log-file=C:chocolatey.log
- name: Come up with the logs
run: |
cd C:\
Get-Content chocolatey.log
echo "End of choco log. Next step will upload this log to github servers as an artifact"
- name: Upload log
uses: actions/upload-artifact@v2
with:
name: Chocolatey logs for Windows ${{ matrix.os }}
path: C:\chocolatey.log
if-no-files-found: error