Skip to content

Commit 69392aa

Browse files
committed
ci: add extension checking workflow
1 parent 7ebd096 commit 69392aa

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

.github/workflows/ci-pull-request.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v2
2222
with:
23-
node-version: '14'
23+
node-version: '20'
2424

2525
- name: Install tfx-cli and typescript
2626
run: |
@@ -64,4 +64,4 @@ jobs:
6464
git add ./vss-extension.json
6565
git commit -m "Increment version to ${{ env.NEW_VERSION }}"
6666
git tag ${{ env.NEW_VERSION }}
67-
git push origin HEAD --tags
67+
git push origin HEAD --tags

0 commit comments

Comments
 (0)