fix(ci): bump setup-node to v5 to fix act eslint.config.mjs lstat bug #23
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/setup-node-v5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Что сделано
Обновление
actions/setup-node@v4→@v5в обоих workflow:.forgejo/workflows/ci.yml.forgejo/workflows/deploy.ymlИзменение
Почему
PR #21 (убрать cache) не решил проблему.
setup-node@v4подactпадает наlstat /root/.cache/act/.../eslint.config.mjs: no such file or directoryдаже безcache: npm. Баг в самомact-клонеsetup-node@v4— пытается найтиeslint.config.mjsдля problem matchers (add-matcher eslint-stylish.json) независимо от cache опции.Сравнение (оба на sha=57f2709):
Found in cache @ /opt/hostedtoolcache/node/22.23.2/x64→ Node в tool cache → success (lstat не вызывается)lstat eslint.config.mjs→ failureФикс:
v5— последняя версия, возможно исправилаact-совместимость. Еслиv5имеет тот же баг — понизим доv3(стабильная, без problem matchers бага).Watch out
setup-node@v5. Если v5 работает — success. deploy.yml проверится на push после merge.node-version: 22поддерживается.v3(fallback).Pending
Closes #22
Code Review Summary
Блокер #22: bump
setup-node@v4→v5вci.ymlиdeploy.yml(2 строки). Исправляетactlstat-баг наeslint.config.mjs.Positives
node-version: "22"сохранён в обоих workflow (ci.yml:17, deploy.yml:17).VERCEL_TOKEN,FORGEJO_*на месте).Found in cache @ /opt/hostedtoolcache).Watch out (info, не блокирующее)
setup-node@v3(v3 стабилен на act/Forgejo Actions).Verdict: APPROVE