3 Commits

Author SHA1 Message Date
patrick-conscriptus[bot]
fc9e5c5741 Automated commit (#123)
Co-authored-by: patrick-conscriptus[bot] <175414948+patrick-conscriptus[bot]@users.noreply.github.com>
2025-10-05 01:13:53 +00:00
Patrick Stevens
0c02f81b09 Fix tag for NuGet login (#122) 2025-10-03 10:26:04 +01:00
Patrick Stevens
3d76737767 Use trusted publishing (#121) 2025-10-03 09:11:50 +00:00
5 changed files with 11 additions and 6 deletions

View File

@@ -242,11 +242,16 @@ jobs:
- name: Identify .NET
id: identify-dotnet
run: nix develop --command bash -c 'echo dotnet=$(which dotnet) >> $GITHUB_OUTPUT'
- name: Obtain NuGet key
uses: NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544
id: login
with:
user: ${{ secrets.NUGET_USER }}
- name: Publish NuGet package
uses: G-Research/common-actions/publish-nuget@2b7dc49cb14f3344fbe6019c14a31165e258c059
with:
package-name: WoofWare.PrattParser
nuget-key: ${{ secrets.NUGET_API_KEY }}
nuget-key: ${{ steps.login.outputs.NUGET_API_KEY }}
nupkg-dir: packed/
dotnet: ${{ steps.identify-dotnet.outputs.dotnet }}

View File

@@ -12,7 +12,6 @@ module TestSurface =
let ``Ensure API surface has not been modified`` () = ApiSurface.assertIdentical assembly
[<Test>]
[<Explicit "Not yet published">]
// https://github.com/nunit/nunit3-vs-adapter/issues/876
let CheckVersionAgainstRemote () =
MonotonicVersion.validate assembly "WoofWare.PrattParser"

View File

@@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Authors>Patrick Stevens</Authors>
<Authors>PatrickStevens</Authors>
<Copyright>Copyright (c) Patrick Stevens 2024</Copyright>
<Description>For the easy construction of Pratt parsers.</Description>
<RepositoryType>git</RepositoryType>

6
flake.lock generated
View File

@@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1758976413,
"narHash": "sha256-hEIDTaIqvW1NMfaNgz6pjhZPZKTmACJmXxGr/H6isIg=",
"lastModified": 1759536663,
"narHash": "sha256-hhM8SUI6kQMei5TImFdNQy9EDT8g2hAD161DUtbfAy0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e3a3b32cc234f1683258d36c6232f150d57df015",
"rev": "27ac93958969b5f3dccd654b402599cf3de633ac",
"type": "github"
},
"original": {

View File

@@ -53,6 +53,7 @@
src = ./.;
projectFile = "./PrattParser/PrattParser.fsproj";
testProjectFile = "./PrattParser.Test/PrattParser.Test.fsproj";
disabledTests = ["WoofWare.PrattParser.Test.TestSurface.CheckVersionAgainstRemote"];
nugetDeps = ./nix/deps.json; # `nix build .#default.fetch-deps && ./result nix/deps.json`
doCheck = true;
};