Skip to content

Commit 7d5d957

Browse files
authored
Merge pull request #5 from mygamedevtools/feature/add-ci
[Feature] Add CI
2 parents c7adc17 + 65fe26b commit 7d5d957

File tree

3 files changed

+41
-10
lines changed

3 files changed

+41
-10
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
name: release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
- name: Release
15+
uses: cycjimmy/semantic-release-action@v3.1.2
16+
with:
17+
extra_plugins: |
18+
@semantic-release/changelog
19+
@semantic-release/git
20+
branch: main
21+
env:
22+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.releaserc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"tagFormat": "${version}",
3+
"plugins": [
4+
["@semantic-release/commit-analyzer", { "preset": "angular" }],
5+
"@semantic-release/release-notes-generator",
6+
["@semantic-release/changelog", { "preset": "angular" }],
7+
["@semantic-release/npm", { "npmPublish": false }],
8+
["@semantic-release/git", {
9+
"assets": ["package.json", "CHANGELOG.md"],
10+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
11+
}],
12+
"@semantic-release/github"
13+
]
14+
}

CHANGELOG.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
Change Log
2-
===
3-
4-
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
5-
61
## [1.3.1] - 2022-10-24
72
- Added: OpenUPM documentation.
83

@@ -26,8 +21,8 @@ All notable changes to this project will be documented in this file. This projec
2621
- Added: `DebugExtensions` to help debugging arrays and collections.
2722
- Added: `GameObjectExtensions` to help with common `GameObject` operations.
2823

29-
[1.3.1]: https://github.com/joaoborks/mygamedevtools-extensions/compare/1.3.0...1.3.1
30-
[1.3.0]: https://github.com/joaoborks/mygamedevtools-extensions/compare/1.2.0...1.3.0
31-
[1.2.0]: https://github.com/joaoborks/mygamedevtools-extensions/compare/1.1.0...1.2.0
32-
[1.1.0]: https://github.com/joaoborks/mygamedevtools-extensions/compare/1.0.0...1.1.0
33-
[1.0.0]: https://github.com/joaoborks/mygamedevtools-extensions/compare/593b818...1.0.0
24+
[1.3.1]: https://github.com/mygamedevtools/extensions/compare/1.3.0...1.3.1
25+
[1.3.0]: https://github.com/mygamedevtools/extensions/compare/1.2.0...1.3.0
26+
[1.2.0]: https://github.com/mygamedevtools/extensions/compare/1.1.0...1.2.0
27+
[1.1.0]: https://github.com/mygamedevtools/extensions/compare/1.0.0...1.1.0
28+
[1.0.0]: https://github.com/mygamedevtools/extensions/compare/593b818...1.0.0

0 commit comments

Comments
 (0)