chore(ci): update workflows, use .nvmrc

This commit is contained in:
2025-09-06 00:51:00 +03:00
parent 6464f3a2ca
commit 4b346cef6e
6 changed files with 125 additions and 131 deletions

View File

@@ -2,25 +2,25 @@ name: Commitlint
on:
pull_request:
branches: [ main ]
branches: [main]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci
- name: Lint commit messages
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD --verbose
- name: Lint commit messages
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD --verbose