Go to file
Jan Klattenhoff ff18094bc3
All checks were successful
Release / Release (push) Successful in 35s
ci: add branch filter for release workflow
2024-08-26 14:33:53 +02:00
.gitea/workflows ci: add branch filter for release workflow 2024-08-26 14:33:53 +02:00
action.yml fix: Add missing dependency 2024-08-26 12:23:00 +00:00
README.md docs: Update readme format 2024-08-25 16:14:37 +00:00
release.config.cjs feat: add release workflow and configuration files 2024-08-26 14:29:38 +02:00
renovate.json chore(deps): add renovate.json 2024-08-25 16:02:20 +00:00

Example usage

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest
    permissions:
      contents: write # to be able to publish a GitHub release
      issues: write # to be able to comment on released issues
      pull-requests: write # to be able to comment on released pull requests
      id-token: write # to enable use of OIDC for npm provenance
    steps:
      - name: Create Release
        uses: https://git.kjan.de/actions/semantic-release@main
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}

Also dont forget to add a config

release.config.cjs

module.exports = {

  branches: ['main'],
  plugins: [
    '@semantic-release/commit-analyzer',
    '@semantic-release/release-notes-generator',
    '@semantic-release/changelog',
      ["@saithodev/semantic-release-gitea", {
      "giteaUrl": "https://git.kjan.de"
    }],
  ],
};