Skip to content

chore(ci): merge publish into release workflow #42

chore(ci): merge publish into release workflow

chore(ci): merge publish into release workflow #42

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Lint, Format & Test
runs-on: ubuntu-latest
# Skip release commits pushed by the release workflow
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version-file: .nvmrc
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci --prefer-offline --no-audit --no-fund
- name: Run format check
run: npm run format:check
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
build:
name: Build
runs-on: ubuntu-latest
needs: [check]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version-file: .nvmrc
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci --prefer-offline --no-audit --no-fund
- name: Build
run: npm run build:only