Skip to content

Commit 020b3e6

Browse files
committed
Make VSCE devDependency and use slim runner for sanity check
1 parent f476066 commit 020b3e6

File tree

3 files changed

+3231
-325
lines changed

3 files changed

+3231
-325
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
check:
99
name: Sanity Checks
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-slim
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v6
@@ -86,19 +86,14 @@ jobs:
8686
if: matrix.name != 'Alpine Linux ARM64'
8787
run: npm ci
8888

89-
- name: Install VSCE
90-
if: matrix.name != 'Alpine Linux ARM64'
91-
run: npm install -g @vscode/vsce
92-
9389
- name: Build and Package (Alpine ARM64)
9490
if: matrix.name == 'Alpine Linux ARM64'
9591
run: |
9692
docker run --rm -v ${{ github.workspace }}:/ws -w /ws node:lts-alpine /bin/sh -c "
9793
apk add --no-cache python3 make g++ linux-headers git bash &&
9894
npm install &&
99-
npm install -g @vscode/vsce &&
10095
npm test &&
101-
vsce package --target alpine-arm64 &&
96+
npm run package -- --target alpine-arm64 &&
10297
chown $(id -u):$(id -g) *.vsix
10398
"
10499
@@ -110,7 +105,8 @@ jobs:
110105
if: matrix.name != 'Alpine Linux ARM64'
111106
env:
112107
VSCE_STORE: file
113-
run: vsce package --target ${{ matrix.vsceTarget }}
108+
shell: bash
109+
run: npm run package -- --target ${{ matrix.vsceTarget }}
114110

115111
- name: Detect VSIX filename
116112
id: vsix-file

0 commit comments

Comments
 (0)