Skip to content

⚠️ Release

⚠️ Release #12

Workflow file for this run

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/checkout@v4.1.7
with:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/node@v1.62.24
- uses: taiga-family/ci/actions/setup/config/npm@v1.62.24
with:
token: ${{ secrets.NPM_TOKEN }}
- run: npm run release
env:
CI: true
GH_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/node@v1.62.24
- run: npx nx run-many --target test --all --coverage --coverageReporters lcov
- uses: actions/upload-artifact@v4
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@v7
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@v4
with:
files: ${{ steps.parsed-project-matrix.outputs.result }}