Skip to content

Commit

Permalink
feat: adding semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
roock committed May 4, 2023
1 parent fda44bf commit 4b9eaab
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/semantic-release.yaml
@@ -0,0 +1,36 @@
name: Semantic Release

on:
push:
branches:
- main
permissions:
contents: read # for checkout

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
steps:
- name: Checkout
uses: actions/checkout@v3
# https://github.com/semantic-release/semantic-release
# https://github.com/cycjimmy/semantic-release-action
# Semantic Release dry run:
# https://github.com/traefik/faency/pull/309
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
semantic_version: 19
ci: true
dry_run: false
# You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: |
@semantic-release/changelog@6.0.0
@semantic-release/git
58 changes: 58 additions & 0 deletions .releaserc.yaml
@@ -0,0 +1,58 @@
---
branches:
- "main"
plugins:
- - "@semantic-release/commit-analyzer"
- releaseRules:
- type: revert
release: patch
- type: perf
release: patch
- type: build
scope: deps
release: patch
- type: docs
scope: README.md
release: patch
- scope: no-release
release: false
- - "@semantic-release/release-notes-generator"
- - "@semantic-release/changelog"
- changelogFile: CHANGELOG.md
changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines."
- - "@semantic-release/git"
- message: "chore: Release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
assets:
- CHANGELOG.md
- - "@semantic-release/github"
- assets:
- CHANGELOG.md
preset: conventionalcommits
presetConfig:
- types:
- type: feat
section": Features
- type: feature,
ssection": "Features"
- type: fix
section: Bug Fixes
- type: build
section": Updates to the Build System
hidden": false
- type: perf
section": "Performance Improvements"
- type: revert
section: Reverts
- type: docs
section: Documentation
- type: style
section: Styles
- type: chore
section: Miscellaneous Chores
- type: refactor
section: Code Refactoring
- type: test
section: Tests
- type: ci
section: Continuous Integration

0 comments on commit 4b9eaab

Please sign in to comment.