fix: clean node_modules before npm ci to avoid ENOTEMPTY error
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
CI was failing because npm ci couldn't remove stale node_modules directory. Explicitly removing it first ensures a clean install.
This commit is contained in:
parent
81dea94128
commit
9bc853ed58
|
|
@ -19,6 +19,7 @@ steps:
|
||||||
- apk add --no-cache curl
|
- apk add --no-cache curl
|
||||||
- npm --version | cat
|
- npm --version | cat
|
||||||
- node --version | cat
|
- node --version | cat
|
||||||
|
- rm -rf node_modules
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm test
|
- npm test
|
||||||
when:
|
when:
|
||||||
|
|
@ -32,6 +33,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- echo "nameserver 1.1.1.1" > /etc/resolv.conf
|
- echo "nameserver 1.1.1.1" > /etc/resolv.conf
|
||||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||||
|
- rm -rf node_modules
|
||||||
- npm ci
|
- npm ci
|
||||||
- echo "=== Scanning for unused files/exports/dependencies (knip) ==="
|
- echo "=== Scanning for unused files/exports/dependencies (knip) ==="
|
||||||
- npx --yes knip || echo "knip found issues (non-blocking)"
|
- npx --yes knip || echo "knip found issues (non-blocking)"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue