Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,27 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v5

# 1. Install pnpm FIRST
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.0.0

# 2. Set up Node SECOND (Now it can find the pnpm executable for caching)
- name: Set up Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
cache: pnpm
# Ensure this path is correct relative to the repo root
cache-dependency-path: pnpm-lock.yaml

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.0.0

# 3. Only install dependencies required for the SDK
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install --filter "./packages/sdk..." --frozen-lockfile

- name: Publish package
- name: Publish SDK
working-directory: packages/sdk
run: |
pnpm run build
Expand Down
Loading