chore: Use yarn workspaces

This commit is contained in:
강동윤 (Donny) 2024-05-29 23:07:38 +09:00
parent ebb135b39e
commit 482fcf55c7
2 changed files with 3 additions and 1 deletions

View File

@ -482,7 +482,7 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
npm config set provenance true
(cd packages/core && yarn npm publish --access public --tag $NPM_TAG)
(cd packages/core && yarn workspaces foreach -Rt npm publish --tolerate-republish)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -4,6 +4,8 @@
"private": true,
"workspaces": [
"./packages/*",
"./packages/core/scripts/npm/*",
"./packages/minifier/scripts/npm/*",
"./bindings/*",
"./bindings/binding_core_wasm/*"
],