diff --git a/.github/workflows/publish-prerelease.yml b/.github/workflows/publish-prerelease.yml index f4595f36..f96ea212 100644 --- a/.github/workflows/publish-prerelease.yml +++ b/.github/workflows/publish-prerelease.yml @@ -45,10 +45,23 @@ jobs: npm whoami env: NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + - name: set Patch release + id: version_type_patch + run: | + echo "VERSION_TYPE=patch" >> $GITHUB_ENV + + - name: Set Minor release + id: version_type_minor + if: contains(join(github.event.pull_request.labels.*.name, ','), 'Minor') + run: | + echo "VERSION_TYPE=minor" >> $GITHUB_ENV + - name: Commit Version UP run: | - yarn lerna version patch --no-git-tag-version --yes --no-push --force-publish - make update-version + yarn lerna version $VERSION_TYPE --no-git-tag-version --yes --no-push --force-publish + yarn update-version + yarn prettier-hook + - name: "Set Generated changelog" uses: actions/github-script@v6 id: 'generated-changelog'