Skip to content

Commit 76fffca

Browse files
authored
ci: fixes code (#407)
1 parent 6d57ddb commit 76fffca

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.github/workflows/auto-build-pkg.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: Auto build deps
3434
strategy:
3535
matrix:
36-
node-version: [18.x]
36+
node-version: [22.x]
3737

3838
steps:
3939
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -69,6 +69,9 @@ jobs:
6969
branch="auto_build_and_bump"
7070
message="build(deps): bump all dependencies and devDependencies version"
7171
body=$(printf "## Changes File\n\n\`\`\`diff\n$(git diff)\n\`\`\`\n\n> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>")
72+
if (( ${#body} >= 65000 )); then
73+
body="⚠️ The text diff is too longer, [view changes](https://github.com/FajarKim/github-readme-profile/pull/${{ github.event.number }}/files)."
74+
fi
7275
if [[ "$(git status --porcelain)" != "" ]]; then
7376
git branch -D ${branch} || true
7477
git checkout -b ${branch}

.github/workflows/generate-locale-doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
name: Generate locale doc
2828
strategy:
2929
matrix:
30-
node-version: [18.x]
30+
node-version: [22.x]
3131

3232
steps:
3333
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

.github/workflows/generate-theme-doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
name: Generate theme doc
2828
strategy:
2929
matrix:
30-
node-version: [18.x]
30+
node-version: [22.x]
3131

3232
steps:
3333
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

.github/workflows/setup-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# Setup .npmrc file to publish to GitHub Packages
1515
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
1616
with:
17-
node-version: "20.x"
17+
node-version: "22.x"
1818
registry-url: "https://npm.pkg.github.com"
1919
# Defaults to the user or organization that owns the workflow file
2020
scope: "@fajarkim"
@@ -34,7 +34,7 @@ jobs:
3434
- run: mv .npmrc.bak .npmrc
3535
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
3636
with:
37-
node-version: "20.x"
37+
node-version: "22.x"
3838
registry-url: "https://registry.npmjs.org"
3939
# Defaults to the user or organization that owns the workflow file
4040
scope: "@fajarkim"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node-version: [18.x]
18+
node-version: [22.x]
1919

2020
steps:
2121
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

0 commit comments

Comments
 (0)