ci: pr title lint job does not need to install all dependencies (#5124)

This commit is contained in:
LongYinan
2023-11-29 09:51:14 +00:00
parent 89f267a3fe
commit a2b8a073cc
5 changed files with 41 additions and 3 deletions

View File

@@ -19,7 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: ./.github/actions/setup-node
uses: actions/setup-node@v3
with:
electron-install: false
- run: echo "${{ github.event.pull_request.title }}" | yarn dlx commitlint -g ./.commitlintrc.json
cache: 'yarn'
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn workspaces focus @affine/commitlint-config
- run: echo "${{ github.event.pull_request.title }}" | yarn workspace @affine/commitlint-config commitlint -g ./.commitlintrc.json