From 8662416c96a1a3a1a3f5f0025033a716df693e99 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 4 Apr 2025 20:59:44 +0100 Subject: [PATCH] Make deployment script accept pat --- scripts/generate-renderer.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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