File tree Expand file tree Collapse file tree 4 files changed +36
-85
lines changed
Expand file tree Collapse file tree 4 files changed +36
-85
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2424 - " README.md"
2525
2626jobs :
27- lint :
28- name : Lint
27+ lint-build :
28+ name : Lint & build
29+ runs-on : ubuntu-latest
2930 permissions :
30- contents : read
31- uses : ./.github/workflows/lint.yml
31+ contents : write
32+ steps :
33+ - uses : actions/checkout@v4
34+ with :
35+ token : ${{ secrets.GH_PAT }}
36+ ref : ${{ github.head_ref }}
37+ - uses : actions/setup-node@v4
38+ with :
39+ node-version-file : " .nvmrc"
40+ cache : " npm"
3241
33- build :
34- name : Build
35- permissions :
36- contents : read
37- actions : write
38- needs : lint
39- uses : ./.github/workflows/build.yml
42+ - run : npm ci
43+
44+ - run : npm run lint
45+
46+ - name : Get version
47+ id : version
48+ run : echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
49+
50+ - name : Build
51+ uses : HaaLeo/publish-vscode-extension@v2
52+ with :
53+ dryRun : true
54+ pat : " "
55+
56+ - name : Upload artifact
57+ uses : actions/upload-artifact@v4
58+ with :
59+ name : digma-${{ steps.version.outputs.version }}.vsix
60+ path : ${{ steps.publishToVSMarketplace.outputs.vsixPath }}
Original file line number Diff line number Diff line change 66 - " v*.*.*"
77
88jobs :
9- lint :
10- name : Lint
11- permissions :
12- contents : read
13- uses : ./.github/workflows/lint.yml
14-
15- build-publish :
16- name : Build & Publish
9+ lint-build-publish :
10+ name : Lint & build & publish
1711 runs-on : ubuntu-latest
1812 permissions :
1913 contents : write
3024
3125 - run : npm ci
3226
27+ - run : npm run lint
28+
3329 - name : Get version
3430 id : version
3531 run : echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
5652 file : ${{ steps.publishToVSMarketplace.outputs.vsixPath }}
5753 asset_name : digma-${{ steps.version.outputs.version }}.vsix
5854 tag : ${{ github.ref }}
59- overwrite : true
You can’t perform that action at this time.
0 commit comments