diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 610c7c0..75f9f8e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,21 +2,25 @@ name: Release on: push: branches: - - master + - main permissions: contents: write + issues: write + pull-requests: write jobs: release: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Release - uses: codfish/semantic-release-action@v5.0.0 + uses: cycjimmy/semantic-release-action@v4 with: - plugins: | - [ '@semantic-release/github' ] + extra_plugins: | + @semantic-release/github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..548e644 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,10 @@ +{ + "branches": [ + "main" + ], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github" + ] +}