ci: fix linux node_modules publish pipeline (#256781)

* ci: fix linux node_modules publish pipeline

* fix: build
This commit is contained in:
Robo
2025-07-21 18:09:57 +09:00
committed by GitHub
parent 5f1da36ac3
commit 2305e3bbcd
5 changed files with 40 additions and 10 deletions

View File

@@ -113,6 +113,23 @@ jobs:
path: .build/node_modules_cache
key: "node_modules-linux-${{ hashFiles('.build/packagelockhash') }}"
- name: Install build dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
working-directory: build
run: |
set -e
for i in {1..5}; do # try 5 times
npm ci && break
if [ $i -eq 5 ]; then
echo "Npm install failed too many times" >&2
exit 1
fi
echo "Npm install failed $i, trying again..."
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |