DEV Community

Cover image for Automatic Updates Nuget Package with Dependabot when using Github - Part 1
Bervianto Leo Pratama
Bervianto Leo Pratama

Posted on

Automatic Updates Nuget Package with Dependabot when using Github - Part 1

It's easy to set up if you don't have dependencies that hosted at private NuGet. You only need to add file at .github/dependabot.yml.

The file will looks like this.

version: 2
updates:
- package-ecosystem: nuget
  directory: "/"
  schedule:
    interval: daily
  open-pull-requests-limit: 25
Enter fullscreen mode Exit fullscreen mode

Notes:

  • If you want to know more about Dependabot, you can visit the documentation here.

  • If you want to know how to setup the private registries for NuGet, you can check the documentation here.

Example Repo/File

If you want to check the file directly, you can visit here

GitHub logo bervProject / NETCoreAPIBoilerplate

Net Core Web API Boilerplate for My Project

NET Core API Boilerplate (BervProject.WebApi.Boilerplate)

Net Core Web API Boilerplate for My Project

Build Status

Github Action Azure Pipelines Codecov
Build&Dockerize Build Status codecov

LICENSE

MIT

MIT License
Copyright (c) 2019 Bervianto Leo Pratama's Personal Projects

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
Enter fullscreen mode Exit fullscreen mode

Finally

Yey, you're done. But, we won't stop here. The next part, I will discuss about the CI. Stay tune.

Stay tune GIF

Top comments (0)