-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (50 loc) · 1.5 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
49
50
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@c76aaeece6444dce7b8749611c342839cdb210ea # v5.0.7
with:
configFile: ./commitlint.config.cjs
lint:
uses: vidavidorra/.github/.github/workflows/node-lint.yml@c76aaeece6444dce7b8749611c342839cdb210ea # v5.0.7
build:
uses: vidavidorra/.github/.github/workflows/node-build.yml@c76aaeece6444dce7b8749611c342839cdb210ea # v5.0.7
strategy:
fail-fast: false
matrix:
nodeVersion: [20, 22, 23]
with:
nodeVersion: ${{ matrix.nodeVersion }}
test:
uses: vidavidorra/.github/.github/workflows/node-test.yml@c76aaeece6444dce7b8749611c342839cdb210ea # v5.0.7
strategy:
fail-fast: false
matrix:
nodeVersion: [20, 22, 23]
with:
nodeVersion: ${{ matrix.nodeVersion }}
code-coverage:
uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@c76aaeece6444dce7b8749611c342839cdb210ea # v5.0.7
needs:
- lint
- build
- test
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}
release:
uses: vidavidorra/.github/.github/workflows/release.yml@c76aaeece6444dce7b8749611c342839cdb210ea # v5.0.7
needs:
- lint-commit-messages
- lint
- build
- test
- code-coverage
secrets:
privateKey: ${{ secrets.RELEASE_PRIVATE_KEY }}
npmToken: ${{ secrets.NPM_PUBLISH_TOKEN }}