mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 15:41:48 +03:00
ci: pr title lint job does not need to install all dependencies (#5124)
This commit is contained in:
parent
89f267a3fe
commit
a2b8a073cc
9
.github/workflows/pr-title-lint.yml
vendored
9
.github/workflows/pr-title-lint.yml
vendored
@ -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
|
||||
|
3
tools/commitlint/README.md
Normal file
3
tools/commitlint/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# commitlint
|
||||
|
||||
This package defines commitlint and it's dependencies, so that it can be used in a CI pipeline to minimize the installation time.
|
10
tools/commitlint/package.json
Normal file
10
tools/commitlint/package.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@affine/commitlint-config",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^18.4.3",
|
||||
"@commitlint/config-conventional": "^18.4.3",
|
||||
"commitlint": "^18.4.3"
|
||||
}
|
||||
}
|
22
yarn.lock
22
yarn.lock
@ -204,6 +204,16 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@affine/commitlint-config@workspace:tools/commitlint":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@affine/commitlint-config@workspace:tools/commitlint"
|
||||
dependencies:
|
||||
"@commitlint/cli": "npm:^18.4.3"
|
||||
"@commitlint/config-conventional": "npm:^18.4.3"
|
||||
commitlint: "npm:^18.4.3"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@affine/component@workspace:*, @affine/component@workspace:packages/frontend/component":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@affine/component@workspace:packages/frontend/component"
|
||||
@ -17671,6 +17681,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"commitlint@npm:^18.4.3":
|
||||
version: 18.4.3
|
||||
resolution: "commitlint@npm:18.4.3"
|
||||
dependencies:
|
||||
"@commitlint/cli": "npm:^18.4.3"
|
||||
"@commitlint/types": "npm:^18.4.3"
|
||||
bin:
|
||||
commitlint: cli.js
|
||||
checksum: e37da4f1cd218381a7810b2e74a553bd05b01776d76dc3038b6e805ea6640308dfa0372c2a976ab5d8c34577128fe6df945e4718c27732dd0d79b517f066fee5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"common-path-prefix@npm:^3.0.0":
|
||||
version: 3.0.0
|
||||
resolution: "common-path-prefix@npm:3.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user