Skip to content

Commit

Permalink
feat: add shared release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 12, 2023
1 parent 50c6132 commit 5221c97
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*{.yml,.yaml}]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 4
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.github export-ignore
.editorconfig export-ignore
.gitignore export-ignore
57 changes: 57 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---

# https://github.com/google-github-actions/release-please-action#release-types-supported

on: # yamllint disable-line rule:truthy
workflow_call:
inputs:
os:
description: The operating system to run the workflow on
required: true
type: string
default: ubuntu-latest
branch:
description: The branch to use when creating the release
required: true
type: string
default: master
package-name:
description: The name of the package to release
required: true
type: string
token:
description: The GitHub token to use when creating the release
required: true
type: string

name: 📦 Create release

jobs:
release:
runs-on: ${{ inputs.os }}
steps:
- name: 🎉 Create release
uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ inputs.token }}
release-type: node
package-name: ${{ inputs.package-name }}
default-branch: ${{ inputs.branch }}
changelog-types: |
[
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
{ "type": "style", "section": "Styles", "hidden": true },
{ "type": "revert", "section": "Reverts", "hidden": true },
{ "type": "deps", "section": "Dependencies", "hidden": true },
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
{ "type": "test", "section": "Tests", "hidden": true },
{ "type": "build", "section": "Build System", "hidden": true },
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
]
...

0 comments on commit 5221c97

Please sign in to comment.