-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.41 KB
/
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
43
44
45
46
47
name: Release
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run release
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx run-many --target test --all --coverage --coverageReporters lcov
- uses: actions/upload-artifact@v3
with:
name: coverage
path: |
coverage
- run: echo "::set-output name=projectMatrix::$(npx nx print-affected --target test --select tasks.target.project --all)"
id: set-project-matrix
- uses: actions/github-script@v6
id: parsed-project-matrix
env:
PROJECTS: '${{ steps.set-project-matrix.outputs.projectMatrix }}'
with:
script: |
return process.env.PROJECTS.split(',').map(p => './coverage/' + p.trim() + '/lcov.info').join(',');
- uses: codecov/codecov-action@v3
with:
files: ${{ steps.parsed-project-matrix.outputs.result }}