mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-30 11:18:53 +02:00
042750cb4e
Now that the minimum supported Node.js version is 22, `node --run` is available everywhere. It avoids the npm process-spawn overhead and matches the style already used in package.json scripts. Affects all GitHub Actions workflows that invoke npm scripts and the website/server Dockerfile bundle step. `npm ci` is left as-is since it is npm-specific.
33 lines
1020 B
YAML
33 lines
1020 B
YAML
name: Update Schema
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
generate-schema:
|
|
name: Update configuration json schema
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version-file: .tool-versions
|
|
cache: npm
|
|
- run: npm ci
|
|
- run: node --run website-generate-schema
|
|
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
|
|
with:
|
|
commit_message: 'chore(schema): auto generate schema'
|
|
commit_user_name: "github-actions[bot]"
|
|
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
|
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|