Skip to content

Commit 3919c5a

Browse files
committed
Simplify CI Pipeline
1 parent 237fb46 commit 3919c5a

File tree

4 files changed

+36
-85
lines changed

4 files changed

+36
-85
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/push.yml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,37 @@ on:
2424
- "README.md"
2525

2626
jobs:
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 }}

.github/workflows/release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@ on:
66
- "v*.*.*"
77

88
jobs:
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
@@ -30,6 +24,8 @@ jobs:
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
@@ -56,4 +52,3 @@ jobs:
5652
file: ${{ steps.publishToVSMarketplace.outputs.vsixPath }}
5753
asset_name: digma-${{ steps.version.outputs.version }}.vsix
5854
tag: ${{ github.ref }}
59-
overwrite: true

0 commit comments

Comments
 (0)