-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (55 loc) · 2.29 KB
/
workflow.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build Extension
on:
push:
branches:
- main
paths-ignore: # dont run when changes made to these folders
- '.vscode/**'
jobs:
build:
name: Build Extension
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
# - name: install gitversion tool
# uses: gittools/actions/gitversion/setup@v0.10.2
# with:
# versionSpec: '5.x'
# - name: execute gitversion
# id: gitversion # step id used as reference for output values
# uses: gittools/actions/gitversion/execute@v0.10.2
# - name: print gitversion
# run: |
# echo "Major: ${{ steps.gitversion.outputs.major }}"
# echo "Minor: ${{ steps.gitversion.outputs.minor }}"
# echo "Patch: ${{ steps.gitversion.outputs.patch }}"
# echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}"
# echo "SemVer: ${{ steps.gitversion.outputs.semVer }}"
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Packages
working-directory: ./BitMagic.VscExtension
run: npm install
- name: Install TypeScript
working-directory: ./BitMagic.VscExtension
run: npm install -g typescript
- name: Install VSCE
working-directory: ./BitMagic.VscExtension
run: npm install -g @vscode/vsce
- name: Install Win-Node-Env
working-directory: ./BitMagic.VscExtension
run: npm install -g win-node-env
- name: Compile Extension
working-directory: ./BitMagic.VscExtension
run: node ./esbuild.js
- name: Compile and Create VSIX
working-directory: ./Bitmagic.VscExtension
run: vsce package
- name: Publish
working-directory: ./Bitmagic.VscExtension
run: vsce publish -p ${{ secrets.VSCODEDEPLOY }}