Skip to content

chore(deps): update dependency type-fest to v5 #918

chore(deps): update dependency type-fest to v5

chore(deps): update dependency type-fest to v5 #918

Workflow file for this run

name: Unit tests & Release
on:
push:
branches:
- main
- next
pull_request:
branches:
- main
- next
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test-node:
name: Test on Node.js v${{ matrix.node-version }}
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # 6.0.0
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: install
run: yarn
- name: run tests
run: yarn test --colors
test-os:
name: Test on ${{ matrix.os }} using Node.js LTS
strategy:
fail-fast: false
matrix:
os: [windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
with:
persist-credentials: false
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # 6.0.0
with:
node-version: lts/*
cache: yarn
- name: install
run: yarn
- name: run tests
run: yarn test --colors
lint:
name: Run ESLint and TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # 6.0.0
with:
node-version: lts/*
cache: yarn
- name: install
run: yarn
- name: run typecheck
run: yarn typecheck
- name: run build
run: yarn build
- name: run ESLint
run: yarn lint
release:
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
if:
# prettier-ignore
${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/main' || github.event.ref == 'refs/heads/next') }}
name: Release new version
needs: [test-node, test-os, lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # 6.0.0
with:
node-version: lts/*
cache: yarn
- name: install
run: yarn
- run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}