Skip to content

Commit

Permalink
mkdir before copy
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed May 20, 2024
1 parent 48f8bf4 commit fa4088e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}/";
Expand Down

0 comments on commit fa4088e

Please sign in to comment.