Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
tiavina-mika committed Jun 10, 2024
1 parent 03928f2 commit 585a218
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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}}"

0 comments on commit 585a218

Please sign in to comment.