From a3ec5783710457a713eb4c5ffacc95fd76be7e12 Mon Sep 17 00:00:00 2001 From: ahnpnl Date: Thu, 12 Sep 2024 13:12:29 +0200 Subject: [PATCH] build: ensure deps are installed when publishing package --- .github/workflows/release_and_publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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