diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e55fed24..2323d35e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,8 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - ssh-key: ${{ secrets.DEPLOY_KEY }} - uses: oven-sh/setup-bun@v1 - uses: pnpm/action-setup@v3 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a73bc5ca..502267e3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -40,13 +40,14 @@ jobs: run: pnpm run build - name: Tag and Publish Packages + id: tag_publish run: | npx lerna version ${{ github.event.inputs.release_type }} --conventional-commits --yes --no-private --force-publish npx lerna publish from-git --yes --dist-tag ${{ github.event.inputs.release_type == 'preminor' && 'next' || 'latest' }} - - name: Generate Changelog + - name: Generate Changelog with standard-version run: | - npx lerna-changelog > CHANGELOG.md + npx standard-version --tag-prefix v --commit-all - name: Commit and Push Changelog run: | @@ -55,3 +56,14 @@ jobs: git push origin HEAD:${{ github.ref }} env: GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + + - name: Create GitHub Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.tag_publish.outputs.TAG }} + release_name: Release ${{ steps.tag_publish.outputs.TAG }} + body_path: CHANGELOG.md + draft: false + prerelease: ${{ contains(github.event.inputs.release_type, 'pre') }}