diff --git a/scripts/generate-renderer.sh b/scripts/generate-renderer.sh index 1f93bc5f6..66d75461b 100644 --- a/scripts/generate-renderer.sh +++ b/scripts/generate-renderer.sh @@ -4,11 +4,10 @@ set -e if [ -n "$GH_PAT" ]; then LATEST_COMMIT_HASH=$(git ls-remote "https://${GH_PAT}@github.com/roadmapsh/web-draw.git" refs/heads/main | awk '{print $1}') + echo "Using commit hash: $LATEST_COMMIT_HASH" + pnpm add "https://${GH_PAT}@github.com/roadmapsh/web-draw#${LATEST_COMMIT_HASH}&path:packages/editor" else LATEST_COMMIT_HASH=$(git ls-remote git@github.com:roadmapsh/web-draw.git refs/heads/main | awk '{print $1}') -fi - -echo "Using commit hash: $LATEST_COMMIT_HASH" - -# Install the package using the commit hash -pnpm add github:roadmapsh/web-draw#"$LATEST_COMMIT_HASH"\&path:packages/editor \ No newline at end of file + echo "Using commit hash: $LATEST_COMMIT_HASH" + pnpm add "github:roadmapsh/web-draw#${LATEST_COMMIT_HASH}&path:packages/editor" +fi \ No newline at end of file