Skip to content

Commit

Permalink
feat: release-please and conventional commit (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
doomspork authored Nov 6, 2024
1 parent 90ef3ba commit c9f6a1c
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"draft": false,
"draft-pull-request": false,
"packages": {
".": {
"extra-files": ["README.md"],
"release-type": "elixir"
}
},
"plugins": [
{
"type": "sentence-case"
}
],
"prerelease": false,
"pull-request-header": "An automated release has been created for you.",
"separate-pull-requests": true
}
3 changes: 3 additions & 0 deletions .github/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.12.3"
}
18 changes: 18 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: PR

on:
pull_request:
types:
- edited
- opened
- reopened
- synchronize

jobs:
title:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.3
- uses: webiny/action-conventional-commits@v1.3.0
25 changes: 25 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

jobs:
Please:
runs-on: ubuntu-latest

steps:
- id: release
name: Release
uses: google-github-actions/release-please-action@v4.1.3
with:
command: manifest
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
release-type: elixir
token: ${{ secrets.GH_PAT_RELEASE_PLEASE_ACTION }}

0 comments on commit c9f6a1c

Please sign in to comment.