Skip to content

Commit 0b34c47

Browse files
authored
Merge pull request #6 from KebanFiru/feat/pipeline
Refactor GitHub Actions workflow to improve error handling and silenc…
2 parents b239b38 + 86fb35e commit 0b34c47

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,31 @@ jobs:
2626
cache: npm
2727

2828
- name: Install dependencies
29-
run: npm install --frozen-lockfile
29+
run: |
30+
npm ci --silent >/dev/null 2>&1 || {
31+
echo "Install step failed." >&2
32+
exit 1
33+
}
3034
3135
- name: Build
32-
run: npm run compile
36+
run: |
37+
npm run compile --silent >/dev/null 2>&1 || {
38+
echo "Build step failed." >&2
39+
exit 1
40+
}
3341
3442
- name: Lint
35-
run: npm run lint
43+
run: |
44+
npm run lint --silent >/dev/null 2>&1 || {
45+
echo "Lint step failed." >&2
46+
exit 1
47+
}
3648
3749
- name: Publish to VS Code Marketplace
3850
env:
3951
VSCE_PAT: ${{ secrets.VSCE_PAT }}
40-
run: npx @vscode/vsce publish -p "$VSCE_PAT"
52+
run: |
53+
npx --yes @vscode/vsce publish -p "$VSCE_PAT" >/dev/null 2>&1 || {
54+
echo "Publish step failed." >&2
55+
exit 1
56+
}

0 commit comments

Comments
 (0)