replace usage of lerna with yarn workspaces foreach
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -55,7 +55,7 @@ jobs:
|
||||
# not flagged as the latest release, which means that people will not get this
|
||||
# version of the package unless requested explicitly
|
||||
- name: publish nightly release
|
||||
run: yarn changeset publish --tag nightly
|
||||
run: yarn workspaces foreach -v --no-private npm publish --tag nightly
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
|
||||
@@ -163,9 +163,9 @@ jobs:
|
||||
- name: publish
|
||||
run: |
|
||||
if [ -f ".changeset/pre.json" ]; then
|
||||
yarn lerna publish from-package --yes --dist-tag next
|
||||
yarn workspaces foreach -v --exclude=root --no-private npm publish --tag next
|
||||
else
|
||||
yarn lerna publish from-package --yes
|
||||
yarn workspaces foreach -v --exclude=root --no-private npm publish
|
||||
fi
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user