Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ko_fi: thundernerd
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: >
npm install
run: >
npm install -g --save false
semantic-release
@semantic-release/changelog
@semantic-release/commit-analyzer
Expand All @@ -27,8 +23,13 @@ jobs:
@semantic-release/npm
@semantic-release/release-notes-generator
conventional-changelog-conventionalcommits
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
NPM_CONFIG_REGISTRY: 'https://npm.pkg.github.com/@Thundernerd'
run: npx semantic-release
112 changes: 112 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"branches":
[
"main"
],
"plugins":
[
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules":
[
{
"breaking": true,
"release": "major"
},
{
"type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"scope": "no-release",
"release": false
}
],
"parserOpts":
{
"noteKeywords":
[
"BREAKING CHANGE",
"BREAKING CHANGES"
]
}
}
],
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
"@semantic-release/github",
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig":
{
"types":
[
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"hidden": true
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "style",
"hidden": true
},
{
"type": "refactor",
"section": "Refactors"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "test",
"section": "Tests"
}
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets":
[
"package.json",
"!package-lock.json.meta",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

129 changes: 8 additions & 121 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "net.tnrd.serializableinterface",
"version": "1.12.1",
"displayName": "Serializable Interface",
"unity": "2020.1",
"unity": "2021.1",
"description": "A wrapper that allows serialization of interfaces that supports both UnityEngine.Object and regular object types",
"keywords": [
"serialize",
Expand All @@ -14,124 +14,11 @@
"name": "TNRD",
"url": "https://www.tnrd.net"
},
"scripts": {
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
"url": "https://github.com/Thundernerd/Unity3D-SerializableInterface.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/@Thundernerd"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.6",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"conventional-changelog-conventionalcommits": "^4.6.3",
"semantic-release": "^19.0.5"
},
"release": {
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"scope": "no-release",
"release": false
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES"
]
}
}
],
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
"@semantic-release/github",
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"hidden": true
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "style",
"hidden": true
},
{
"type": "refactor",
"section": "Refactors"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "test",
"section": "Tests"
}
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"!package-lock.json.meta",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
"samples": [
{
"displayName": "Source Generation",
"description": "Contains a dll that will allow you to use source generation",
"path": "Samples~/SourceGeneration"
}
]
}