From 0cdd65495051823db84fc7ea40928d2fac46a00b Mon Sep 17 00:00:00 2001 From: Mimi Tran <80493680+mimi-imtbl@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:25:49 +1100 Subject: [PATCH] fix: Fix indentation in publish workflow (#2485) --- .github/workflows/publish-major-version.yaml | 2 +- .github/workflows/publish.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-major-version.yaml b/.github/workflows/publish-major-version.yaml index 65098bfc25..5540f4eeaf 100644 --- a/.github/workflows/publish-major-version.yaml +++ b/.github/workflows/publish-major-version.yaml @@ -142,7 +142,7 @@ jobs: - name: Pre Release Step if: contains(github.event.inputs.release_type, 'alpha') id: pre_release - uses: JS-DevTools/npm-publish@v3 + uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c with: token: ${{ secrets.TS_IMMUTABLE_SDK_NPM_TOKEN }} access: public diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5ef3dfab0b..c6748389df 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -96,6 +96,7 @@ jobs: echo "NEXT_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT - name: Generate version.json + if: (env.DRY_RUN) == 'false' run: | echo '{ "version": "${{ steps.version.outputs.NEXT_VERSION }}" }' > ./sdk/version.json cp ./sdk/version.json ./sdk/dist/ @@ -127,7 +128,7 @@ jobs: - name: Pre Release Step if: contains(env.RELEASE_TYPE, 'alpha') id: pre_release - uses: JS-DevTools/npm-publish@v3 + uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c with: token: ${{ secrets.TS_IMMUTABLE_SDK_NPM_TOKEN }} access: public @@ -186,7 +187,7 @@ jobs: with: message: "❌ Failed to publish SDK version ${{steps.version.outputs.NEXT_VERSION}} to NPM. ${{ github.triggering_actor }} please check the logs for more details." - - name: Wait for NPM @latest Update + - name: Wait for NPM @latest Update id: wait_for_npm_update if: contains(env.RELEASE_TYPE, 'release') && env.DRY_RUN == 'false' run: |