diff --git a/pkgs/cli/project.json b/pkgs/cli/project.json index 17d221ca5..94ee20932 100644 --- a/pkgs/cli/project.json +++ b/pkgs/cli/project.json @@ -30,7 +30,7 @@ "test": { "executor": "nx:noop", "inputs": ["default", "^production"], - "dependsOn": ["test:vitest", "e2e:install"], + "dependsOn": ["test:vitest"], "options": { "parallel": false } diff --git a/scripts/snapshot-release.sh b/scripts/snapshot-release.sh index b82f0a6b9..8972888bc 100755 --- a/scripts/snapshot-release.sh +++ b/scripts/snapshot-release.sh @@ -286,7 +286,21 @@ if [[ -f pkgs/edge-worker/jsr.json ]]; then JSR_PUBLISHED_VERSION=$(jq -r '.version' pkgs/edge-worker/jsr.json) echo "" echo -e "${BOLD}Publishing to JSR...${NC}" - if ( cd pkgs/edge-worker && pnpm jsr publish --allow-slow-types --allow-dirty ) ; then + + # Check for JSR authentication (similar to how npm uses ~/.npmrc) + # JSR/Deno caches credentials in ~/.deno/credentials.json after `deno login` + if [[ -z "${JSR_TOKEN:-}" ]] && [[ ! -f "$HOME/.deno/credentials.json" ]]; then + echo -e "${YELLOW}⚠ No JSR credentials found${NC}" + echo "" + echo -e "To authenticate with JSR (one-time setup, like 'npm login'):" + echo -e " ${BLUE}deno login${NC}" + echo "" + echo -e "Or for CI/CD, set the JSR_TOKEN environment variable." + echo "" + echo -e "${YELLOW}Skipping JSR publish.${NC}" + JSR_SUCCESS=true # Don't fail the whole release + JSR_PUBLISHED_VERSION="" + elif ( cd pkgs/edge-worker && pnpm jsr publish --allow-slow-types --allow-dirty ) ; then echo -e "${GREEN}✓ JSR package published${NC}" else echo -e "${RED}✗ JSR publish failed${NC}"