Skip to content

Commit

Permalink
Setting .NET and Node version
Browse files Browse the repository at this point in the history
  • Loading branch information
einari committed Aug 28, 2024
1 parent 49d4d66 commit 934f8a5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: .NET Build

env:
DOTNET_VERSION: "8.0.401"

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -34,7 +37,8 @@ jobs:
- name: Setup .Net
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.0.400"
dotnet-version: ${{ env.DOTNET_VERSION }}
cache: true

- name: Build & run tests for root
run: dotnet test --configuration Release
7 changes: 5 additions & 2 deletions .github/workflows/javascript-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: JavaScript Build

env:
NODE_VERSION: "22.x"

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -31,10 +34,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node v20
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: ${{ env.NODE_VERSION }}
registry-url: "https://registry.npmjs.org"

- uses: actions/cache@v3
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish

env:
NUGET_OUTPUT: ./Artifacts/NuGet
DOTNET_VERSION: "6.0.400"
NUGET_OUTPUT: ./Artifacts/NuGet
DOTNET_VERSION: "8.0.401"
NODE_VERSION: "22.x"

on:
workflow_dispatch:
Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
cache: true

- name: Remove any existing artifacts
run: rm -rf ${{ env.NUGET_OUTPUT }}
Expand All @@ -86,13 +88,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node v20
- name: Setup node
uses: actions/setup-node@v4
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
node-version: 20.x
node-version: ${{ env.NODE_VERSION }}
registry-url: "https://registry.npmjs.org"

- uses: actions/cache@v3
Expand Down

0 comments on commit 934f8a5

Please sign in to comment.