From 091c729a3efdcc8704a17e858364e5e36447fdd1 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Thu, 15 May 2025 06:24:38 +0200 Subject: [PATCH] [CI] Replace "workspace:*" dependencies before publishing on npm --- .github/workflows/release-on-npm.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-on-npm.yaml b/.github/workflows/release-on-npm.yaml index 397575391b0..6169a700585 100644 --- a/.github/workflows/release-on-npm.yaml +++ b/.github/workflows/release-on-npm.yaml @@ -39,6 +39,10 @@ jobs: git add . git commit -m "Update versions to ${{ env.VERSION }}" + - name: Replace local "workspace:*" occurrences + run: | + yarn workspaces foreach -pA exec "sed -i 's/\"workspace:\*\"/\"${{ env.VERSION }}\"/g' package.json" + - name: Publish on NPM env: NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}