diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd65ca9..a7feb15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,18 +59,6 @@ jobs: - name: Build run: yarn build - - name: Publish to Registry - run: | - pkg_version=${{ steps.env_vars.outputs.NEW_VERSION }} - branch=${{ steps.env_vars.outputs.BRANCH }} - - if [[ $branch != "main" ]]; then - yarn version --new-version "$pkg_version-beta$GITHUB_RUN_NUMBER" --no-git-tag-version - yarn publish --tag beta --access public - else - yarn publish --access public - fi - - name: Create Changeset run: | CHANGELOG=$(git --no-pager log ${{ steps.env_vars.outputs.PUBLISHED_VERSION }}..HEAD --format="%C(auto)%h %s") @@ -92,3 +80,15 @@ jobs: body: "${{ steps.changeset.outputs.RELEASE_NOTES }}\n\n**Full Changelog**: https://github.com/adhamu/arge/compare/${{ steps.env_vars.outputs.PUBLISHED_VERSION }}...${{ steps.env_vars.outputs.NEW_VERSION }}" draft: false prerelease: false + + - name: Publish to Registry + run: | + pkg_version=${{ steps.env_vars.outputs.NEW_VERSION }} + branch=${{ steps.env_vars.outputs.BRANCH }} + + if [[ $branch != "main" ]]; then + yarn version --new-version "$pkg_version-beta$GITHUB_RUN_NUMBER" --no-git-tag-version + yarn publish --tag beta --access public + else + yarn publish --access public + fi \ No newline at end of file diff --git a/package.json b/package.json index 42dfbbe..bbcf342 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arge", - "version": "1.5.0", + "version": "1.5.1", "description": "A simple utility to parse command line arguments and flags", "keywords": [ "argv",