Skip to content

Commit 12813d0

Browse files
refactor: small changes (#37)
Co-authored-by: Almanov Nikita <[email protected]>
1 parent 60de4b7 commit 12813d0

27 files changed

+6367
-5431
lines changed

.github/dependabot.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ updates:
1212
schedule:
1313
interval: weekly
1414
day: sunday
15+
versioning-strategy: increase

.github/workflows/commitlint.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919

2020
- name: Set Up PNPM
2121
uses: pnpm/action-setup@v4
22-
with:
23-
version: 8
2422

2523
- name: Set Up NodeJS
2624
uses: actions/setup-node@v4
@@ -31,7 +29,17 @@ jobs:
3129
- name: Install Dependencies
3230
run: pnpm i
3331

32+
- name: Extract Commit Message (Push)
33+
if: ${{ github.event_name }} == 'push'
34+
run: |
35+
git log -1 --pretty=%B > commit_message.txt
36+
37+
- name: Extract Commit Message (Pull Request)
38+
if: ${{ github.event_name }} == 'pull_request'
39+
run: |
40+
git show -s --format=%B > commit_message.txt
41+
3442
- name: Lint
35-
env:
36-
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
37-
run: echo $COMMIT_MESSAGE | pnpm commitlint
43+
run: |
44+
COMMIT_MESSAGE=$(cat commit_message.txt)
45+
echo "$COMMIT_MESSAGE" | pnpm commitlint

.github/workflows/editorconfig.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828

2929
- name: Set Up PNPM
3030
uses: pnpm/action-setup@v4
31-
with:
32-
version: 8
3331

3432
- name: Set Up NodeJS
3533
uses: actions/setup-node@v4

.github/workflows/eslint.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828

2929
- name: Set Up PNPM
3030
uses: pnpm/action-setup@v4
31-
with:
32-
version: 8
3331

3432
- name: Set Up NodeJS
3533
uses: actions/setup-node@v4

.github/workflows/markdown.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828

2929
- name: Set Up PNPM
3030
uses: pnpm/action-setup@v4
31-
with:
32-
version: 8
3331

3432
- name: Set Up NodeJS
3533
uses: actions/setup-node@v4

.github/workflows/pre-commit.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020

2121
- name: Setup Python
2222
uses: actions/setup-python@v5
23-
with:
24-
python-version: 3.12
2523

2624
- name: Lint
2725
uses: pre-commit/[email protected]

.github/workflows/prettier.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828

2929
- name: Set Up PNPM
3030
uses: pnpm/action-setup@v4
31-
with:
32-
version: 8
3331

3432
- name: Set Up NodeJS
3533
uses: actions/setup-node@v4

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
branches:
1111
- main
1212

13+
permissions:
14+
id-token: write
15+
1316
jobs:
1417
release:
1518
name: Release
@@ -35,8 +38,6 @@ jobs:
3538

3639
- name: Set Up PNPM
3740
uses: pnpm/action-setup@v4
38-
with:
39-
version: 8
4041

4142
- name: Set Up NodeJS
4243
uses: actions/setup-node@v4

.github/workflows/spec.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Spec
33
on:
44
workflow_run:
55
workflows:
6-
- CodeQL
6+
- ESLint
77
types:
88
- completed
99
pull_request:
@@ -28,8 +28,6 @@ jobs:
2828

2929
- name: Set Up PNPM
3030
uses: pnpm/action-setup@v4
31-
with:
32-
version: 8
3331

3432
- name: Set Up NodeJS
3533
uses: actions/setup-node@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# directories
1+
# Directories
22
node_modules

0 commit comments

Comments
 (0)