{"id":30743174,"url":"https://github.com/gabbium/semantic-release-nuget","last_synced_at":"2026-01-20T16:47:03.900Z","repository":{"id":306789151,"uuid":"1027251608","full_name":"gabbium/semantic-release-nuget","owner":"gabbium","description":"A semantic-release plugin to build and publish NuGet packages automatically","archived":false,"fork":false,"pushed_at":"2025-07-27T17:41:15.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-21T10:48:05.780Z","etag":null,"topics":["nuget","semantic-release","semantic-release-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabbium.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-27T16:26:18.000Z","updated_at":"2025-07-27T17:58:25.000Z","dependencies_parsed_at":"2025-07-27T17:38:45.393Z","dependency_job_id":"6861dbd8-14b2-4835-8fd8-3980d1b5ba0c","html_url":"https://github.com/gabbium/semantic-release-nuget","commit_stats":null,"previous_names":["gabbium/semantic-release-nuget"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gabbium/semantic-release-nuget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbium%2Fsemantic-release-nuget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbium%2Fsemantic-release-nuget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbium%2Fsemantic-release-nuget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbium%2Fsemantic-release-nuget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabbium","download_url":"https://codeload.github.com/gabbium/semantic-release-nuget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbium%2Fsemantic-release-nuget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273539317,"owners_count":25123499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nuget","semantic-release","semantic-release-plugin"],"created_at":"2025-09-04T02:03:37.608Z","updated_at":"2025-10-17T18:39:39.307Z","avatar_url":"https://github.com/gabbium.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# semantic release nuget\n\nA [semantic-release](https://semantic-release.gitbook.io) plugin to build and publish NuGet packages automatically for .NET projects.\n\n## ✅ What it does\n\n- Detects the next release version from `semantic-release`\n- Runs:\n  - `dotnet build --configuration Release`\n  - `dotnet pack` with the same version\n  - `dotnet nuget push` to publish to **nuget.org**\n\nAll automatically in the `publish` step of semantic-release.\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install --save-dev @gabbium/semantic-release-nuget\n```\n\n---\n\n## ⚙️ Usage\n\nIn your `.releaserc` (or `release.config.js`), add the plugin after your standard plugins:\n\n```json\n{\n  \"branches\": [\"main\"],\n  \"plugins\": [\n    \"@gabbium/semantic-release-nuget\",\n    \"@semantic-release/commit-analyzer\",\n    \"@semantic-release/release-notes-generator\",\n    \"@semantic-release/changelog\",\n    \"@semantic-release/git\",\n    \"@semantic-release/github\"\n  ]\n}\n```\n\n---\n\n## 🔑 Required environment variables\n\nYou need to provide:\n\n- `GITHUB_TOKEN` → for semantic-release GitHub integration\n- `NUGET_TOKEN` → your NuGet.org API key\n\nIn GitHub Actions, you would set it like:\n\n```yaml\n- name: Run semantic-release\n  run: npx semantic-release\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}\n```\n\n---\n\n## 🛠 How it works internally\n\nThis plugin hooks into the `publish` step of `semantic-release`:\n\n1. Uses the `nextRelease.version` provided by semantic-release\n2. Builds the project with `dotnet build --configuration Release`\n3. Packs a NuGet with `/p:Version=${nextRelease.version}`\n4. Pushes the `.nupkg` to nuget.org using `dotnet nuget push`\n\n---\n\n## ✅ Example with GitHub Actions\n\n```yaml\nname: Release\n\non:\n  push:\n    branches: [\"main\"]\n\njobs:\n  release:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Setup Node.js\n        uses: actions/setup-node@v4\n        with:\n          node-version: 23.x\n\n      - name: Setup .NET SDK\n        uses: actions/setup-dotnet@v4\n        with:\n          dotnet-version: \"9.0.x\"\n\n      - name: Install deps\n        run: npm ci\n\n      - name: Run semantic-release\n        run: npx semantic-release\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}\n```\n\n---\n\n## 🪪 License\n\nThis project is licensed under the MIT License – see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabbium%2Fsemantic-release-nuget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabbium%2Fsemantic-release-nuget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabbium%2Fsemantic-release-nuget/lists"}