Skip to content

Commit

Permalink
feat: added semantic release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed May 13, 2020
1 parent d902887 commit 15a782f
Show file tree
Hide file tree
Showing 15 changed files with 11,824 additions and 11,304 deletions.
3 changes: 2 additions & 1 deletion .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ update_configs:
- match:
dependency_type: "development"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true
prefix: "Build"
default_labels:
- "dependency"
- "Changed"
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

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

[*.yml]
indent_size = 2
21 changes: 21 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
* text=auto
*.php text eol=lf

.dependabot export-ignore
.github/ export-ignore

__tests__/ export-ignore

.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.nvmrc export-ignore
.typo-ci.yml export-ignore
docker-compose.yml export-ignore
infection.json export-ignore
package.json export-ignore
package-lock.json export-ignore
phpstan.neon export-ignore
phpunit.xml export-ignore
psalm.xml export-ignore
psalm-baseline.xml export-ignore
34 changes: 34 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Semantic Release"

on:
push:
branches:
- ([0-9])?(.{+([0-9]),x}).x
- master
- next
- next-major
- alpha
- beta

jobs:
semantic-release:
name: "Semantic Release"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Semantic Release"
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 17.0.7
extra_plugins: |
@semantic-release/changelog@^5.0.1
@semantic-release/git@^9.0.0
@google/semantic-release-replace-plugin@^1.0.0
conventional-changelog-conventionalcommits@^4.3.0
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.16.3
14.2.0
47 changes: 47 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@google/semantic-release-replace-plugin",
{
"replacements": [
{
"files": [
"package.json"
],
"from": "\"version\": \".*\"",
"to": "\"version\": \"${nextRelease.version}\"",
"results": [
{
"file": "package.json",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
"@semantic-release/changelog",
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["dist/*", "UPGRADE.md", "LICENSE.md", "README.md", "CHANGELOG.md", "action.yml"]
}
]
]
}
45 changes: 45 additions & 0 deletions .typo-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This is a sample .typo-ci.yml file, it's used to configure how Typo CI will behave.
# Add it to the root of your project and push it to github.
---

# What language dictionaries should it use? Currently Typo CI supports:
# de
# en
# en_GB
# es
# fr
# it
# pt
# pt_BR
dictionaries:
- en
- en_GB

# Any files/folders we should ignore?
excluded_files:
- ".dependabot/**/*"
- ".github/workflows/**/*"
- ".github/settings.yml"
- ".editorconfig"
- ".gitattributes"
- ".gitignore"
- ".nvmrc"
- "package.json"
- "package-lock.json"
- "tsconfig.json"
- "jest.config.js"
- ".prettierignore"
- ".prettierrc.json"
- ".eslintignore"
- ".eslintrc.json"

# Any typos we should ignore?
excluded_words:
- typoci
- anolilab
- bannert
- prisis
- narrowspark

# Would you like filenames to also be spellchecked?
spellcheck_filenames: true
22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

16 changes: 16 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The MIT License (MIT)

Copyright (c) 2020 Daniel Bannert

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the _Software_), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED **AS IS**, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Empty file added UPGRADE.md
Empty file.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ branding:
color: yellow

runs:
using: 'node12'
using: 'node14'
main: 'dist/index.js'
post: dist/index.js
Loading

0 comments on commit 15a782f

Please sign in to comment.