Skip to content

Commit c2632a4

Browse files
authored
Merge pull request #56 from Thundernerd/feat/source_generation
2 parents f3deca4 + 0c89956 commit c2632a4

File tree

6 files changed

+202
-128
lines changed

6 files changed

+202
-128
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: thundernerd

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ jobs:
88
name: Release
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v3
13-
with:
14-
token: ${{ secrets.GH_TOKEN }}
1511
- name: Setup Node.js
1612
uses: actions/setup-node@v2
1713
with:
1814
node-version: 'lts/*'
1915
- name: Install dependencies
20-
run: >
21-
npm install
16+
run: >
17+
npm install -g --save false
2218
semantic-release
2319
@semantic-release/changelog
2420
@semantic-release/commit-analyzer
@@ -27,8 +23,13 @@ jobs:
2723
@semantic-release/npm
2824
@semantic-release/release-notes-generator
2925
conventional-changelog-conventionalcommits
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
with:
29+
token: ${{ secrets.GH_TOKEN }}
3030
- name: Release
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3333
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34-
run: npx semantic-release
34+
NPM_CONFIG_REGISTRY: 'https://npm.pkg.github.com/@Thundernerd'
35+
run: npx semantic-release

.releaserc

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"branches":
3+
[
4+
"main"
5+
],
6+
"plugins":
7+
[
8+
[
9+
"@semantic-release/commit-analyzer",
10+
{
11+
"preset": "conventionalcommits",
12+
"releaseRules":
13+
[
14+
{
15+
"breaking": true,
16+
"release": "major"
17+
},
18+
{
19+
"type": "docs",
20+
"scope": "README",
21+
"release": "patch"
22+
},
23+
{
24+
"type": "refactor",
25+
"release": "patch"
26+
},
27+
{
28+
"scope": "no-release",
29+
"release": false
30+
}
31+
],
32+
"parserOpts":
33+
{
34+
"noteKeywords":
35+
[
36+
"BREAKING CHANGE",
37+
"BREAKING CHANGES"
38+
]
39+
}
40+
}
41+
],
42+
[
43+
"@semantic-release/npm",
44+
{
45+
"npmPublish": true
46+
}
47+
],
48+
"@semantic-release/github",
49+
[
50+
"@semantic-release/release-notes-generator",
51+
{
52+
"preset": "conventionalcommits",
53+
"presetConfig":
54+
{
55+
"types":
56+
[
57+
{
58+
"type": "feat",
59+
"section": "Features"
60+
},
61+
{
62+
"type": "fix",
63+
"section": "Bug Fixes"
64+
},
65+
{
66+
"type": "chore",
67+
"hidden": true
68+
},
69+
{
70+
"type": "docs",
71+
"section": "Documentation"
72+
},
73+
{
74+
"type": "style",
75+
"hidden": true
76+
},
77+
{
78+
"type": "refactor",
79+
"section": "Refactors"
80+
},
81+
{
82+
"type": "perf",
83+
"section": "Performance Improvements"
84+
},
85+
{
86+
"type": "test",
87+
"section": "Tests"
88+
}
89+
]
90+
}
91+
}
92+
],
93+
[
94+
"@semantic-release/changelog",
95+
{
96+
"changelogFile": "CHANGELOG.md"
97+
}
98+
],
99+
[
100+
"@semantic-release/git",
101+
{
102+
"assets":
103+
[
104+
"package.json",
105+
"!package-lock.json.meta",
106+
"CHANGELOG.md"
107+
],
108+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
109+
}
110+
]
111+
]
112+
}
Binary file not shown.

Samples~/SourceGeneration/SerializableInterfaceSourceGeneration.dll.meta

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "net.tnrd.serializableinterface",
33
"version": "1.12.1",
44
"displayName": "Serializable Interface",
5-
"unity": "2020.1",
5+
"unity": "2021.1",
66
"description": "A wrapper that allows serialization of interfaces that supports both UnityEngine.Object and regular object types",
77
"keywords": [
88
"serialize",
@@ -14,124 +14,11 @@
1414
"name": "TNRD",
1515
"url": "https://www.tnrd.net"
1616
},
17-
"scripts": {
18-
"semantic-release": "semantic-release"
19-
},
20-
"repository": {
21-
"type": "git",
22-
"url": "https://github.com/Thundernerd/Unity3D-SerializableInterface.git"
23-
},
24-
"publishConfig": {
25-
"registry": "https://npm.pkg.github.com/@Thundernerd"
26-
},
27-
"devDependencies": {
28-
"@semantic-release/changelog": "^6.0.1",
29-
"@semantic-release/commit-analyzer": "^9.0.2",
30-
"@semantic-release/git": "^10.0.1",
31-
"@semantic-release/github": "^8.0.6",
32-
"@semantic-release/npm": "^9.0.1",
33-
"@semantic-release/release-notes-generator": "^10.0.3",
34-
"conventional-changelog-conventionalcommits": "^4.6.3",
35-
"semantic-release": "^19.0.5"
36-
},
37-
"release": {
38-
"branches": [
39-
"main"
40-
],
41-
"plugins": [
42-
[
43-
"@semantic-release/commit-analyzer",
44-
{
45-
"preset": "conventionalcommits",
46-
"releaseRules": [
47-
{
48-
"type": "docs",
49-
"scope": "README",
50-
"release": "patch"
51-
},
52-
{
53-
"type": "refactor",
54-
"release": "patch"
55-
},
56-
{
57-
"scope": "no-release",
58-
"release": false
59-
}
60-
],
61-
"parserOpts": {
62-
"noteKeywords": [
63-
"BREAKING CHANGE",
64-
"BREAKING CHANGES"
65-
]
66-
}
67-
}
68-
],
69-
[
70-
"@semantic-release/npm",
71-
{
72-
"npmPublish": true
73-
}
74-
],
75-
"@semantic-release/github",
76-
[
77-
"@semantic-release/release-notes-generator",
78-
{
79-
"preset": "conventionalcommits",
80-
"presetConfig": {
81-
"types": [
82-
{
83-
"type": "feat",
84-
"section": "Features"
85-
},
86-
{
87-
"type": "fix",
88-
"section": "Bug Fixes"
89-
},
90-
{
91-
"type": "chore",
92-
"hidden": true
93-
},
94-
{
95-
"type": "docs",
96-
"section": "Documentation"
97-
},
98-
{
99-
"type": "style",
100-
"hidden": true
101-
},
102-
{
103-
"type": "refactor",
104-
"section": "Refactors"
105-
},
106-
{
107-
"type": "perf",
108-
"section": "Performance Improvements"
109-
},
110-
{
111-
"type": "test",
112-
"section": "Tests"
113-
}
114-
]
115-
}
116-
}
117-
],
118-
[
119-
"@semantic-release/changelog",
120-
{
121-
"changelogFile": "CHANGELOG.md"
122-
}
123-
],
124-
[
125-
"@semantic-release/git",
126-
{
127-
"assets": [
128-
"package.json",
129-
"!package-lock.json.meta",
130-
"CHANGELOG.md"
131-
],
132-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
133-
}
134-
]
135-
]
136-
}
17+
"samples": [
18+
{
19+
"displayName": "Source Generation",
20+
"description": "Contains a dll that will allow you to use source generation",
21+
"path": "Samples~/SourceGeneration"
22+
}
23+
]
13724
}

0 commit comments

Comments
 (0)