Skip to content

Merge pull request #5 from mau-herrera/maherr/ci-github-actions #4

Merge pull request #5 from mau-herrera/maherr/ci-github-actions

Merge pull request #5 from mau-herrera/maherr/ci-github-actions #4

Workflow file for this run

name: Release
on:
push:
branches: [main, beta]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
with:
node-version: 20.x
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint:fix
- name: Test
run: pnpm test:coverage
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: coverage/cobertura-coverage.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'
- name: Build
run: pnpm build
- name: Generate changelog
run: npx conventional-changelog -p angular -i CHANGELOG.md -s
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}