diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..12a0340 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI +on: + push: + branches: + - main +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Release + uses: cycjimmy/semantic-release-action@v3.1.2 + with: + extra_plugins: | + @semantic-release/changelog + @semantic-release/git + branch: main + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..c401567 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,14 @@ +{ + "tagFormat": "${version}", + "plugins": [ + ["@semantic-release/commit-analyzer", { "preset": "angular" }], + "@semantic-release/release-notes-generator", + ["@semantic-release/changelog", { "preset": "angular" }], + ["@semantic-release/npm", { "npmPublish": false }], + ["@semantic-release/git", { + "assets": ["package.json", "CHANGELOG.md"], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + }], + "@semantic-release/github" + ] +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7847970..06ce58b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,3 @@ -Change Log -=== - -All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). - ## [1.3.1] - 2022-10-24 - Added: OpenUPM documentation. @@ -26,8 +21,8 @@ All notable changes to this project will be documented in this file. This projec - Added: `DebugExtensions` to help debugging arrays and collections. - Added: `GameObjectExtensions` to help with common `GameObject` operations. -[1.3.1]: https://github.com/joaoborks/mygamedevtools-extensions/compare/1.3.0...1.3.1 -[1.3.0]: https://github.com/joaoborks/mygamedevtools-extensions/compare/1.2.0...1.3.0 -[1.2.0]: https://github.com/joaoborks/mygamedevtools-extensions/compare/1.1.0...1.2.0 -[1.1.0]: https://github.com/joaoborks/mygamedevtools-extensions/compare/1.0.0...1.1.0 -[1.0.0]: https://github.com/joaoborks/mygamedevtools-extensions/compare/593b818...1.0.0 \ No newline at end of file +[1.3.1]: https://github.com/mygamedevtools/extensions/compare/1.3.0...1.3.1 +[1.3.0]: https://github.com/mygamedevtools/extensions/compare/1.2.0...1.3.0 +[1.2.0]: https://github.com/mygamedevtools/extensions/compare/1.1.0...1.2.0 +[1.1.0]: https://github.com/mygamedevtools/extensions/compare/1.0.0...1.1.0 +[1.0.0]: https://github.com/mygamedevtools/extensions/compare/593b818...1.0.0 \ No newline at end of file