Skip to content

Commit 091c729

Browse files
committed
[CI] Replace "workspace:*" dependencies before publishing on npm
1 parent d4c48be commit 091c729

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release-on-npm.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
git add .
4040
git commit -m "Update versions to ${{ env.VERSION }}"
4141
42+
- name: Replace local "workspace:*" occurrences
43+
run: |
44+
yarn workspaces foreach -pA exec "sed -i 's/\"workspace:\*\"/\"${{ env.VERSION }}\"/g' package.json"
45+
4246
- name: Publish on NPM
4347
env:
4448
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)