Skip to content

Build(deps-dev): bump @types/node from 20.17.3 to 20.17.5 #517

Build(deps-dev): bump @types/node from 20.17.3 to 20.17.5

Build(deps-dev): bump @types/node from 20.17.3 to 20.17.5 #517

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
compat:
name: Check compatibility
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node_version:
- 18
- 20
- 22
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
cache: 'npm'
node-version: ${{ matrix.node_version }}
- run: npm ci --no-fund --no-audit
- name: Run tests
run: npm run test
check:
name: Code quality and coverage report
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
cache: 'npm'
node-version: 20
- run: npm ci --no-fund --no-audit
- name: Run checks
run: npm run check:ci
- name: Collect coverage
run: npm run coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
release:
name: Release
needs:
- check
permissions:
contents: write
id-token: write
pull-requests: write
runs-on: ubuntu-latest
if: github.repository_owner == 'friedemannsommer' && github.ref_name == 'main'
concurrency: '${{ github.workflow }}-${{ github.ref }}'
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
cache: 'npm'
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm ci --no-fund --no-audit
- name: Create release PR or publish
uses: changesets/[email protected]
with:
title: 'ci(changesets): package release'
commit: 'ci(changesets): version package'
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}