diff --git a/.github/workflows/release_and_publish.yml b/.github/workflows/release_and_publish.yml index 6d0dfdd0f7..b59a9dbc83 100644 --- a/.github/workflows/release_and_publish.yml +++ b/.github/workflows/release_and_publish.yml @@ -88,10 +88,16 @@ jobs: - name: Setup Node version ⚙️ uses: actions/setup-node@v4 + if: ${{ steps.cache-yarn.outputs.cache-hit != 'true' }} with: node-version: 20 registry-url: https://registry.npmjs.org/ + - name: Install 🔧 + if: ${{ steps.cache-yarn.outputs.cache-hit != 'true' }} + run: | + yarn --immutable + - name: Publish with latest tag 🚀 if: ${{ needs.setup_variables.outputs.isLatest == 'true' }} run: npm publish --access public