Skip to content

Commit

Permalink
use dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed May 20, 2024
1 parent fe0bf0f commit 1e1f5e5
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/${pkg_name}";
cp -ar "${targetdir}"/* "${_tmp}/node_modules/${pkg_name}/";
mkdir -p "$(dirname "${_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 1e1f5e5

Please sign in to comment.