Skip to content

Bump mocha from 10.5.2 to 10.6.0 #373

Bump mocha from 10.5.2 to 10.6.0

Bump mocha from 10.5.2 to 10.6.0 #373

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:
- 16
- 18
- 20
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: Check
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 }}