diff --git a/package.json b/package.json index ff5a4ba95..e5874ec85 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "build": "nx run-many --target=build --all", "version": "pnpm changeset version && ./scripts/update-jsr-json-version.sh", "validate:publish:npm": "pnpm nx run-many -t build --exclude=demo,website,example-flows && pnpm publish --dry-run --provenance --recursive --filter=!./pkgs/edge-worker", - "validate:publish:jsr": "cd ./pkgs/edge-worker && jsr publish --dry-run --allow-slow-types", + "validate:publish:jsr": "cd ./pkgs/edge-worker && pnpm jsr publish --dry-run --allow-slow-types", "validate:publish": "pnpm run validate:publish:npm && pnpm run validate:publish:jsr", "publish:npm": "pnpm nx run-many -t build --exclude=demo,website,example-flows && pnpm publish --provenance --recursive --filter=!./pkgs/edge-worker", - "publish:jsr": "cd ./pkgs/edge-worker && jsr publish --allow-slow-types", + "publish:jsr": "cd ./pkgs/edge-worker && pnpm jsr publish --allow-slow-types", "changeset:tag": "pnpm changeset tag && git push --follow-tags", "release": "git status && pnpm run validate:publish && pnpm run publish:npm && pnpm run publish:jsr && pnpm run changeset:tag" }, diff --git a/scripts/snapshot-release.sh b/scripts/snapshot-release.sh index 4e9b0f8c8..a480a3bf9 100755 --- a/scripts/snapshot-release.sh +++ b/scripts/snapshot-release.sh @@ -326,10 +326,9 @@ NPM_SUCCESS=false JSR_SUCCESS=true # Default true (only set false if JSR package exists and fails) JSR_PUBLISHED_VERSION="" # Track JSR version if published -# Publish to npm (token is read from NPM_TOKEN env var via .npmrc) -# GITHUB_ACTIONS=true skips changeset's npm profile check which fails with automation tokens +# Publish to npm (exclude edge-worker which goes to JSR only) echo -e "${BOLD}Publishing to npm...${NC}" -if GITHUB_ACTIONS=true pnpm exec changeset publish --tag snapshot ; then +if pnpm publish --recursive --tag snapshot --no-git-checks --filter='!./pkgs/edge-worker' ; then echo -e "${GREEN}✓ npm packages published${NC}" NPM_SUCCESS=true else @@ -343,7 +342,6 @@ if [[ -f pkgs/edge-worker/jsr.json ]]; then echo "" echo -e "${BOLD}Publishing to JSR...${NC}" JSR_PUBLISH_CMD="pnpm jsr publish --allow-slow-types --allow-dirty" - # Pass token explicitly if set (pnpm jsr may not inherit JSR_TOKEN properly) if [[ -n "${JSR_TOKEN:-}" ]]; then JSR_PUBLISH_CMD="$JSR_PUBLISH_CMD --token $JSR_TOKEN" fi