-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.45 KB
/
ci-cd.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
43
44
45
46
47
48
name: CI/CD
on:
push:
branches:
- main
- beta
- renovate/**
pull_request: null
jobs:
lint-commit-messages:
uses: vidavidorra/.github/.github/workflows/lint-commit-messages.yml@b4a180b3266d7197437bcc0c8a5fed2a201a58d4 # v5.0.0
lint:
uses: vidavidorra/.github/.github/workflows/node-lint.yml@b4a180b3266d7197437bcc0c8a5fed2a201a58d4 # v5.0.0
build:
uses: vidavidorra/.github/.github/workflows/node-build.yml@b4a180b3266d7197437bcc0c8a5fed2a201a58d4 # v5.0.0
strategy:
fail-fast: false
matrix:
nodeVersion: [18, 20, 22]
with:
nodeVersion: ${{ matrix.nodeVersion }}
test:
uses: vidavidorra/.github/.github/workflows/node-test.yml@b4a180b3266d7197437bcc0c8a5fed2a201a58d4 # v5.0.0
strategy:
fail-fast: false
matrix:
nodeVersion: [18, 20, 22]
with:
nodeVersion: ${{ matrix.nodeVersion }}
code-coverage:
uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@b4a180b3266d7197437bcc0c8a5fed2a201a58d4 # v5.0.0
needs:
- lint
- build
- test
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}
release:
uses: vidavidorra/.github/.github/workflows/release.yml@b4a180b3266d7197437bcc0c8a5fed2a201a58d4 # v5.0.0
needs:
- lint-commit-messages
- lint
- build
- test
- code-coverage
secrets:
privateKey: ${{ secrets.RELEASE_PRIVATE_KEY }}
npmToken: ${{ secrets.NPM_PUBLISH_TOKEN }}