From 623c9f2179f668812401c054439a8c1a6d60ff76 Mon Sep 17 00:00:00 2001 From: Nik <2661899+CodeSchwert@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:15:05 +1200 Subject: [PATCH] fix: set correct SDK version in SDK reference docs (#2076) --- .github/workflows/publish-docs.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index 4d0f157a71..f9cb1f0af2 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -87,12 +87,6 @@ jobs: node-version-file: .nvmrc cache: "yarn" - - name: Update SDK package.json version - run: | - tmp=$(mktemp) - jq '.version = "${{ env.VERSION }}"' ./package.json > "$tmp" && mv "$tmp" ./package.json - shell: bash - - name: Restore cached node_modules id: restore-cache-node_modules uses: actions/cache@v4 @@ -107,6 +101,12 @@ jobs: - name: Build run: export NODE_OPTIONS=--max-old-space-size=6144 && yarn build + - name: Update SDK package.json version + run: | + tmp=$(mktemp) + jq '.version = "${{ env.VERSION }}"' ./sdk/package.json > "$tmp" && mv "$tmp" ./sdk/package.json + shell: bash + - name: Build SDK Docs run: yarn docs:build