diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 2a6e3dc6f9..7036f99c57 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -192,7 +192,12 @@ jobs: # Publishes current version of packages that are not already present in the registry - name: publish - run: yarn lerna -- publish from-package --yes + run: | + if [ -f ".changeset/pre.json" ]; then + yarn lerna -- publish from-package --yes --dist-tag next + else + yarn lerna -- publish from-package --yes + fi env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}