File tree Expand file tree Collapse file tree 2 files changed +45
-2
lines changed Expand file tree Collapse file tree 2 files changed +45
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Check extension
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ permissions :
9
+ contents : write
10
+ id-token : write
11
+
12
+ jobs :
13
+ build :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v2
18
+
19
+ - name : Setup Node.js
20
+ uses : actions/setup-node@v2
21
+ with :
22
+ node-version : ' 20'
23
+
24
+ - name : Install tfx-cli and typescript
25
+ run : |
26
+ npm install -g tfx-cli
27
+ npm install -g typescript
28
+
29
+ - name : Login to Azure DevOps
30
+ uses : azure/login@v1
31
+ with :
32
+ client-id : ${{ secrets.AZURE_APPLICATION_CLIENT_ID }}
33
+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
34
+ subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
35
+
36
+ - name : Get Azure DevOps access token
37
+ id : get_token
38
+ run : |
39
+ echo "AZURE_DEVOPS_ACCESS_TOKEN=$(az account get-access-token --resource ${{ secrets.AZURE_MARKETPLACE_ACCESS_SCOPE }} --query accessToken -o tsv)" >> $GITHUB_ENV
40
+
41
+ - name : Build release
42
+ run : |
43
+ make build
Original file line number Diff line number Diff line change 20
20
- name : Setup Node.js
21
21
uses : actions/setup-node@v2
22
22
with :
23
- node-version : ' 14 '
23
+ node-version : ' 20 '
24
24
25
25
- name : Install tfx-cli and typescript
26
26
run : |
64
64
git add ./vss-extension.json
65
65
git commit -m "Increment version to ${{ env.NEW_VERSION }}"
66
66
git tag ${{ env.NEW_VERSION }}
67
- git push origin HEAD --tags
67
+ git push origin HEAD --tags
You can’t perform that action at this time.
0 commit comments