Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity package #156

Merged
merged 7 commits into from
Dec 14, 2023
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
7 changes: 7 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,17 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Publish unity packages to npm
run: |
cd src/Jab.Unity
npm version ${{ needs.build.outputs.PackageVersion }}
npm config set _authToken=${{ secrets.NUGET_KEY }}
npm publish
- name: Add GitHub package source
run: dotnet nuget add source https://nuget.pkg.github.com/pakrym/index.json --name "github" --username NotUsed --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
- name: Publish NuGet packages to NuGet
run: dotnet nuget push nuget/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source "nuget.org" --skip-duplicate --no-symbols

update_versions:
needs: [build, publish]
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion eng/UpdateAllVersions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ $projectRegexToFind = "$projectRegexPrefix([\w\d\.]+)"
Replace-In-File $projectPath $projectRegexPrefix $projectRegexToFind
Replace-In-File $attributesProjectPath $projectRegexPrefix $projectRegexToFind


pusd src/Jab.Unity
npm version $NewVersion
4 changes: 4 additions & 0 deletions src/Jab.Unity/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.dll
!*.meta
*.tgz
README.md
33 changes: 33 additions & 0 deletions src/Jab.Unity/Jab.Attributes.dll.meta

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

4 changes: 4 additions & 0 deletions src/Jab.Unity/Jab.Unity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<Compile Include="ContainerGenerator.Unity.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Jab.Attributes\Jab.Attributes.csproj" />
</ItemGroup>

<Import Project="../Jab/Jab.Common.props" />

</Project>
88 changes: 88 additions & 0 deletions src/Jab.Unity/Jab.Unity.dll.meta

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

7 changes: 7 additions & 0 deletions src/Jab.Unity/README.md.meta

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

35 changes: 35 additions & 0 deletions src/Jab.Unity/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "com.pakrym.jab",
"version": "0.0.1",
"description": "C# Source Generator based dependency injection container implementation.",
"licensesUrl": "https://github.com/pakrym/jab/blob/main/LICENSE",
"repository": {
"type": "git",
"url": "git+https://github.com/pakrym/jab.git"
},
"keywords": [
"di",
"di-container",
"dependency-injection",
"source-generator",
"roslyn"
],
"author": "pakrym",
"license": "MIT",
"bugs": {
"url": "https://github.com/pakrym/jab/issues"
},
"scripts": {
"prepack": "dotnet build -c Release .; cp ../../README.md .; cp ./bin/Release/netstandard2.0/Jab.Attributes.dll . ; cp ./bin/Release/netstandard2.0/Jab.Unity.dll ."
},
"homepage": "https://github.com/pakrym/jab#readme",
"displayName": "Jab.Unity",
"files": [
"README.md",
"package.json.meta",
"Jab.Unity.dll.meta",
"Jab.Attributes.dll.meta",
"Jab.Attributes.dll",
"Jab.Unity.dll"
]
}
7 changes: 7 additions & 0 deletions src/Jab.Unity/package.json.meta

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

Loading