From 585a2184e0603b3222660e54f7c7883b85d6642e Mon Sep 17 00:00:00 2001 From: tiavina-mika Date: Mon, 10 Jun 2024 13:24:49 +0300 Subject: [PATCH] fix: release --- .github/workflows/release.yml | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 472d8fb..70480c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,39 +26,13 @@ jobs: with: persist-credentials: false - # # need this for using yarn - # - name: Enable Corepack - # run: corepack enable - - # - uses: actions/setup-node@v4 - # with: - # node-version: '20.x' - # registry-url: 'https://registry.npmjs.org' - # # instead of using the local cache in .yarn folder, since it's in .gitignore - # cache: 'yarn' - - # - name: Replace branch name in branches array - # run: sed -i 's|'current-branch'|'${{ github.ref_name }}'|' .releaserc - - # - name: Install dependencies - # run: yarn - - # for Yarn v1, use `yarn publish` instead - # - run: yarn npm publish // if using yarn - # - name: Release - # env: - # # this will be used in .yarnrc.yml - # GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - # run: npx semantic-release - name: Conventional Changelog Action + id: changelog uses: TriPSs/conventional-changelog-action@v5 with: github-token: ${{ secrets.GH_TOKEN }} version-file: './package.json' - - run: echo "🎉 tag_name ${{ steps.changelog.outputs.tag}} event." - - run: echo "🎉 release_name ${{ steps.changelog.outputs.tag}} event." - - run: echo "🎉 body ${{ steps.changelog.outputs.clean_changelog}} event." + - name: create release uses: actions/create-release@v1 if: ${{ steps.changelog.outputs.skipped == 'false' }} @@ -68,3 +42,7 @@ jobs: tag_name: ${{ steps.changelog.outputs.tag }} release_name: ${{ steps.changelog.outputs.tag }} body: ${{ steps.changelog.outputs.clean_changelog }} + + - run: echo "🎉 tag_name ${{ steps.changelog.outputs.tag}}" + - run: echo "🎉 release_name ${{ steps.changelog.outputs.tag}}" + - run: echo "🎉 body ${{ steps.changelog.outputs.clean_changelog}}"