From fa4088e341d6262bc6c374315fb46b081ad20ffa Mon Sep 17 00:00:00 2001 From: ptaylor Date: Mon, 20 May 2024 16:51:40 -0700 Subject: [PATCH] mkdir before copy --- .github/workflows/main.pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.pr.yml b/.github/workflows/main.pr.yml index 7240c976..56be6b10 100644 --- a/.github/workflows/main.pr.yml +++ b/.github/workflows/main.pr.yml @@ -137,8 +137,8 @@ jobs: pkg_name="$(jq -r '.name' "${targetdir}/package.json")"; # Install the package into a temp dir _tmp="$(mktemp -d)"; - mkdir -p "${_tmp}/node_modules"; - cp -ar "${targetdir}" "${_tmp}/node_modules/${pkg_name}"; + mkdir -p "${_tmp}/node_modules/${pkg_name}"; + cp -ar "${targetdir}"/{*,.*} "${_tmp}/node_modules/${pkg_name}/"; cd "${_tmp}/node_modules/${pkg_name}"; npm i; cd "${_tmp}/";