Skip to content

Commit bf15aff

Browse files
feat: upgrade yargs, uuid and node 24 (#2653)
Co-authored-by: svcAPLBot <174728082+svcAPLBot@users.noreply.github.com>
1 parent 64c536a commit bf15aff

File tree

17 files changed

+588
-545
lines changed

17 files changed

+588
-545
lines changed

.github/workflows/ci-helm-chart.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Set up Node.js
5656
uses: actions/setup-node@v6
5757
with:
58-
node-version: 20
58+
node-version: 24
5959
- name: Install packages
6060
run: |
6161
cd ci/
@@ -67,5 +67,5 @@ jobs:
6767
CI_GIT_BASELINE_BRANCH: ${{ inputs.CI_GIT_BASELINE_BRANCH }}
6868
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
6969
run: |
70-
cd ci/
70+
cd ci/
7171
npm run update-helm-chart-deps

.github/workflows/create_rc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
- uses: actions/setup-node@v6
4545
with:
46-
node-version: '20'
46+
node-version: '24'
4747

4848
- name: Install dependencies
4949
run: |

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
if: always() && contains(needs.release.result, 'success') && !github.event.act
132132
runs-on: ubuntu-22.04
133133
container:
134-
image: linode/apl-tools:v2.10.3
134+
image: linode/apl-tools:v2.10.4
135135
options: --user 0 # See https://docs.github.com/en/actions/sharing-automations/creating-actions/dockerfile-support-for-github-actions#user
136136
steps:
137137
- name: Checkout

.github/workflows/patch_rc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
3939
- uses: actions/setup-node@v6
4040
with:
41-
node-version: '20'
41+
node-version: '24'
4242

4343
- name: Install dependencies
4444
if: ${{ env.RC_RELEASE == 'true' }}
@@ -55,7 +55,7 @@ jobs:
5555
echo "Detected "feat"/"fix"/"chore: trigger" commits. Running standard-version..."
5656
git config --global user.email $BOT_EMAIL
5757
git config --global user.name $BOT_USERNAME
58-
npm run release -- --prerelease rc --skip.changelog
58+
npm run release -- --prerelease rc --skip.changelog
5959
6060
git push --follow-tags
6161
TAG="v$(jq '.version' package.json -r)"

.husky/post-checkout

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@ nvm use
2424

2525
# Prevent errors on shallow clones
2626
if git rev-parse --verify HEAD@{1} >/dev/null 2>&1; then
27-
npm run run-if-changed
27+
# Check if package-lock.json changed
28+
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
29+
echo "📦 package-lock.json changed, running npm install..."
30+
npm install --prefer-offline --no-audit
31+
fi
32+
33+
# Check if values-schema.yaml changed
34+
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^values-schema.yaml$"; then
35+
echo "🔨 values-schema.yaml changed, regenerating schema..."
36+
npm run gen:chart-schema
37+
fi
2838
else
29-
echo "Skipping run-if-changed: Not enough Git history"
39+
echo "Skipping file change detection: Not enough Git history"
3040
fi

.husky/post-merge

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
#!/bin/sh
22

3-
npm run run-if-changed
3+
# Check if package-lock.json changed during merge
4+
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
5+
echo "📦 package-lock.json changed, running npm install..."
6+
npm install --prefer-offline --no-audit
7+
fi
8+
9+
# Check if values-schema.yaml changed during merge
10+
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^values-schema.yaml$"; then
11+
echo "🔨 values-schema.yaml changed, regenerating schema..."
12+
npm run gen:chart-schema
13+
fi

.husky/post-rewrite

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
#!/bin/sh
22

3-
npm run run-if-changed
3+
# Check if package-lock.json changed during rewrite (e.g., git rebase)
4+
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^package-lock.json$"; then
5+
echo "📦 package-lock.json changed, running npm install..."
6+
npm install --prefer-offline --no-audit
7+
fi
8+
9+
# Check if values-schema.yaml changed during rewrite
10+
if git diff --name-only HEAD@{1} HEAD 2>/dev/null | grep -q "^values-schema.yaml$"; then
11+
echo "🔨 values-schema.yaml changed, regenerating schema..."
12+
npm run gen:chart-schema
13+
fi

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22
1+
v24

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM linode/apl-tools:v2.10.3 AS ci
1+
FROM linode/apl-tools:v2.10.4 AS ci
22

33
ENV APP_HOME=/home/app/stack
44

@@ -36,7 +36,7 @@ FROM ci AS clean
3636
# below command removes the packages specified in devDependencies and set NODE_ENV to production
3737
RUN npm prune --production
3838

39-
FROM linode/apl-tools:v2.10.3 AS prod
39+
FROM linode/apl-tools:v2.10.4 AS prod
4040
ARG APPS_REVISION=''
4141
ENV APP_HOME=/home/app/stack
4242
ENV ENV_DIR=/home/app/stack/env

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,13 @@ export default defineConfig([
105105
'prettier/prettier': 'error',
106106
},
107107
},
108+
// Test files specific configuration
109+
{
110+
files: ['**/*.test.ts', '**/stubs/**/*.ts'],
111+
rules: {
112+
'@typescript-eslint/no-unsafe-argument': 'off',
113+
'@typescript-eslint/no-explicit-any': 'off',
114+
'@typescript-eslint/no-unused-vars': 'off',
115+
},
116+
},
108117
])

0 commit comments

Comments
 (0)