Skip to content

Commit 0e13e99

Browse files
authored
ci: fix publish (#897)
1 parent c95da01 commit 0e13e99

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/publish-js-sdks.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@ jobs:
4242
- name: Set up pnpm
4343
uses: pnpm/action-setup@v4
4444
with:
45-
version: latest
46-
47-
- name: Enable corepack
48-
run: corepack enable
45+
version: 9.15.0
46+
run_install: false
4947

5048
- name: Get pnpm store path
5149
id: pnpm-store
52-
run: echo "STORE_PATH=$(corepack pnpm store path)" >> "$GITHUB_OUTPUT"
50+
working-directory: sdks
51+
run: echo "STORE_PATH=$(pnpm store path)" >> "$GITHUB_OUTPUT"
5352

5453
- name: Cache pnpm store
5554
uses: actions/cache@v5
@@ -60,11 +59,11 @@ jobs:
6059

6160
- name: Install workspace dependencies
6261
working-directory: sdks
63-
run: corepack pnpm install --frozen-lockfile
62+
run: pnpm install --frozen-lockfile
6463

6564
- name: Build SDK
6665
working-directory: sdks
67-
run: corepack pnpm --filter ${{ matrix.sdk.packageName }}... --sort run build
66+
run: pnpm --filter ${{ matrix.sdk.packageName }}... --sort run build
6867

6968
- name: Pack SDK
7069
if: startsWith(github.ref, format('refs/tags/js/{0}/v', matrix.sdk.tagPrefix))
@@ -74,7 +73,7 @@ jobs:
7473
set -euo pipefail
7574
PACK_DIR="${GITHUB_WORKSPACE}/dist/npm/${{ matrix.sdk.name }}"
7675
mkdir -p "$PACK_DIR"
77-
corepack pnpm pack --pack-destination "$PACK_DIR"
76+
pnpm pack --pack-destination "$PACK_DIR"
7877
PACKAGE_TARBALL="$(find "$PACK_DIR" -maxdepth 1 -name '*.tgz' -print -quit)"
7978
if [[ -z "$PACKAGE_TARBALL" ]]; then
8079
echo "No package tarball was produced in $PACK_DIR" >&2
@@ -93,4 +92,4 @@ jobs:
9392
env:
9493
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9594
run: |
96-
corepack pnpm publish "${{ steps.pack.outputs.tarball }}" --access public --no-git-checks
95+
pnpm publish "${{ steps.pack.outputs.tarball }}" --access public --no-git-checks

0 commit comments

Comments
 (0)