Skip to content

docs: add commitType to configuration docs #93

docs: add commitType to configuration docs

docs: add commitType to configuration docs #93

Workflow file for this run

name: Build and test site
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build Astro site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Fetch translations
# Only build with translations on push to main
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
uses: crowdin/github-action@52aa776766211d83d975df51f3b9c53c2f8ba35f # v2.16.3
with:
upload_sources: false
upload_translations: false
download_translations: true
crowdin_branch_name: main
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Build website
run: |
pnpm run build
- name: Upload html output as artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: html-${{ github.run_id }}
path: ./dist
link_check:
name: Check internal links
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout lychee config file from repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
sparse-checkout: |
lychee.toml
sparse-checkout-cone-mode: false
- name: Ensure destination folder exists
run: |
mkdir ./dist
- name: Download html files from artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: html-${{ github.run_id }}
path: ./dist
- name: Offline link check
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
with:
# Only check local files, no network requests
args: --config './lychee.toml' --no-progress --offline --root-dir "$GITHUB_WORKSPACE/dist/" dist/**/*.html
# Fail job when lychee returns a non-zero exit code
fail: true