BuildVersioning
BuildVersioning copied to clipboard
Update actions/setup-dotnet action to v4
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| actions/setup-dotnet | action | major | v1.9.0 -> v4.0.1 |
Release Notes
actions/setup-dotnet (actions/setup-dotnet)
v4.0.1
What's Changed
Documentation changes:
- Update README.md to use latest action version by @mikes-gh in https://github.com/actions/setup-dotnet/pull/502
- Update links to runner software by @samuel-w in https://github.com/actions/setup-dotnet/pull/499
Dependency updates:
- Bump undici from 5.27.2 to 5.28.3 by @dependabot in https://github.com/actions/setup-dotnet/pull/515
- Bump braces from 3.0.2 to 3.0.3 and other dependency updates by @dependabot in https://github.com/actions/setup-dotnet/pull/533
New Contributors
- @mikes-gh made their first contribution in https://github.com/actions/setup-dotnet/pull/502
- @samuel-w made their first contribution in https://github.com/actions/setup-dotnet/pull/499
Full Changelog: https://github.com/actions/setup-dotnet/compare/v4...v4.0.1
v4.0.0
What's Changed
In the scope of this release, the version of the Node.js runtime was updated to 20. The majority of dependencies were updated to the latest versions. From now on, the code for the setup-dotnet will run on Node.js 20 instead of Node.js 16.
Breaking changes
- Update Node.js runtime to version 20 by @harithavattikuti in #484
- Sequential version install fix by @nikolai-laevskii in https://github.com/actions/setup-dotnet/pull/433 In setup-dotnet@v3, the dotnet executable was overwritten during each action run, sometimes leading to failures if the executable was still in use. This issue was resolved in setup-dotnet@v4 by introducing an additional install-script run that installs the LTS version of the dotnet executable and utilizes it for all subsequent dotnet installations. The actual download is performed only once per workflow by the initial install-script run. To use older versions, utilize global.json. For more details, refer to the documentation.
Non-breaking changes
- Refactor installer by @nikolai-laevskii in https://github.com/actions/setup-dotnet/pull/432
- Allow json comments by @nikolai-laevskii in https://github.com/actions/setup-dotnet/pull/431
- Update fast-xml-parser and dotnet installer scripts by @IvanZosimov in https://github.com/actions/setup-dotnet/pull/437
- Update dependencies by @IvanZosimov in https://github.com/actions/setup-dotnet/pull/440
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in https://github.com/actions/setup-dotnet/pull/444
- Update installers by @nikolai-laevskii in https://github.com/actions/setup-dotnet/pull/462
- Update semver by @dmitry-shibanov in https://github.com/actions/setup-dotnet/pull/468
New Contributors
- @HarithaVattikuti made their first contribution in https://github.com/actions/setup-dotnet/pull/484
Full Changelog: https://github.com/actions/setup-dotnet/compare/v3...v4.0.0
v3.2.0
What's Changed
In scope of this minor release, the ability to cache the NuGet global-packages folder was added in https://github.com/actions/setup-dotnet/pull/303 by @nogic1008
For caching, the action uses the @toolkit/cache library under the hood, which in turn allows getting rid of configuring the @actions/cache action separately.
Such input parameters as cache and cache-dependency-path were added. The cache input is optional, and caching is turned off by default, cache-dependency-path is used to specify the path to a dependency file - packages.lock.json.
Example of use-case:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
cache: true
cache-dependency-path: subdir/packages.lock.json
More details can be found in the action's documentation.
Full Changelog: https://github.com/actions/setup-dotnet/compare/v3...v3.2.0
v3.1.0
What's Changed
This minor release includes the following new features:
- The latest patch syntax was added in https://github.com/actions/setup-dotnet/pull/428 by @IvanZosimov
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.2xx'
More details about the new syntax can be found here.
- The
global-json-fileinput was updated to accept absolute paths in https://github.com/actions/setup-dotnet/pull/396 by @othmane-kinane-nw - Error messages were made more informative in https://github.com/actions/setup-dotnet/pull/375 by @IvanZosimov
- Notification if the
global.jsonwas not found in the root directory was added in https://github.com/actions/setup-dotnet/pull/344 by @teo-tsirpanis
It also contains several infrastructure changes:
- Update to latest
actions/publish-actionby @JamesMGreene in https://github.com/actions/setup-dotnet/pull/348 - Update version of publish-action by @MaksimZhukov in https://github.com/actions/setup-dotnet/pull/368
- Update action to use reusable workflows by @IvanZosimov in https://github.com/actions/setup-dotnet/pull/358
- Update workflow badges by @IvanZosimov in https://github.com/actions/setup-dotnet/pull/377
- Add and configure ESLint and update configuration for Prettier by @IvanZosimov in https://github.com/actions/setup-dotnet/pull/391
- Turn on automatic update of ESLint and Prettier configuration files by @IvanZosimov in https://github.com/actions/setup-dotnet/pull/395
- Update e2e tests and e2e test infrastructure by @IvanZosimov in https://github.com/actions/setup-dotnet/pull/414
- Refactor and update unit-tests by @IvanZosimov in https://github.com/actions/setup-dotnet/pull/418
- Increase amount of retries for Dotnet installation scripts tests by @nikolai-laevskii in https://github.com/actions/setup-dotnet/pull/427
New Contributors
- @teo-tsirpanis made their first contribution in https://github.com/actions/setup-dotnet/pull/344
- @JamesMGreene made their first contribution in https://github.com/actions/setup-dotnet/pull/348
- @othmane-kinane-nw made their first contribution in https://github.com/actions/setup-dotnet/pull/396
- @nikolai-laevskii made their first contribution in https://github.com/actions/setup-dotnet/pull/427
Full Changelog: https://github.com/actions/setup-dotnet/compare/v3...v3.1.0
v3.0.3: Fix issue with ECONNRESET and refactor authutil
In scope of this release we updated the link to the .Net Core releases index file (#337) in order to fix the ECONNRESET error. Besides, we refactored authutil.ts to get rid of xmlbuilder (https://github.com/actions/setup-dotnet/pull/336)
v3.0.2: Updating @action/core, adding logic for processing the DOTNET_INSTALL_DIR environment variable.
In the scope of this release such changes were made:
- The logic for processing the
DOTNET_INSTALL_DIRenvironment variable was added to support relative paths and paths containing~#332 - The version of
@actions/corewas bumped to 1.10.0 #331
v3.0.1: Enable DOTNET_INSTALL_DIR environment variable
In scope of this release the DOTNET_INSTALL_DIR environment variable was enabled to add the ability to change the installation directory for .NET SDK #329. The DOTNET_INSTALL_DIR can be helpful when access to the default installation directory, for instance, on self-hosted runners, is denied.
Example of usage:
build:
runs-on: self-hosted
env:
DOTNET_INSTALL_DIR: "path/to/directory"
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
v3.0.0
This major release includes the following changes:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
dotnet-quality: 'preview'
- run: dotnet build <my project>
More in detail here.
- #241 The output variable
dotnet-versionwhich contains the installed by the action SDK version was added in #324:
- uses: actions/setup-dotnet@v3
id: cp310
with:
dotnet-version: '3.1.422'
- run: echo '${{ steps.cp310.outputs.dotnet-version }}' # outputs 3.1.422
More in detail here.
- The
dotnet-versionsyntax was updated and now it allows to specify the prerelease version without usinginclude-prereleaseinput. Theinclude-prereleaseinput was cut out:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.0-preview.6'
More in detail here.
Breaking changes:
- Installation paths for Windows and Ubuntu images were changed to match the location of pre-installed SDKs. In more detail, read here.
v2.1.1: Add support for Windows-arm
In scope of this release we add support for Windows-arm. Besides, we change getInput to getBooleanInput for include-prerelease.
v2.1.0: Package updates, support for global json file in a subdirectory, installer scripts updates
This release includes the following PRs:
-
Adding support for the
global-json-fileinput: #276 Example of usage:- uses: actions/setup-dotnet@v2 with: global-json-file: csharp/global.json - run: dotnet build <my project> working-directory: csharp -
Update @zeit/ncc to @vercel/ncc: #290
-
Update vulnerable packages: #289
-
Improve documentation and update installer scripts to the latest version: #278
v2.0.0
In scope of this release we changed version of the runtime Node.js for the setup-dotnet action and updated package-lock.json file to v2.
Breaking Changes With the update to Node 16 in #271 all scripts will now be run with Node 16 rather than Node 12.
v1.9.1: Installer scripts updates
Update dotnet-install scripts to the latest versions: #270
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.