-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 949 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: release
on:
workflow_dispatch:
push:
tags:
- v*
jobs:
install_deps:
name: Install dependencies
uses: spuxx1701/ci-cd/.github/workflows/[email protected]
run_checks:
name: Run code checks
uses: spuxx1701/ci-cd/.github/workflows/[email protected]
needs:
- install_deps
run_unit_tests:
name: Run unit tests
uses: spuxx1701/ci-cd/.github/workflows/[email protected]
needs:
- install_deps
with:
COVERAGE_FILENAME: reports/vitest/coverage/cobertura-coverage.xml
COVERAGE_FAIL_BELOW_MIN: 100
build:
name: Build artifact
uses: spuxx1701/ci-cd/.github/workflows/[email protected]
needs:
- run_checks
- run_unit_tests
publish:
name: Publish artifact
uses: spuxx1701/ci-cd/.github/workflows/[email protected]
needs:
- build
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}