Browse Source

try npm ci with cache

pull/704/head
Jason Dove 3 years ago
parent
commit
b453dce57e
  1. 20
      .github/workflows/artifacts.yml
  2. 2
      ErsatzTV/ErsatzTV.csproj

20
.github/workflows/artifacts.yml

@ -51,6 +51,16 @@ jobs: @@ -51,6 +51,16 @@ jobs:
with:
dotnet-version: 6.0.x
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache NPM dependencies
uses: bahmutov/npm-install@v1.4.5
with:
working-directory: ErsatzTV/client-app
- name: Clean
run: dotnet clean --configuration Release && dotnet nuget locals all --clear
@ -166,6 +176,16 @@ jobs: @@ -166,6 +176,16 @@ jobs:
with:
dotnet-version: 6.0.x
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache NPM dependencies
uses: bahmutov/npm-install@v1.4.5
with:
working-directory: ErsatzTV/client-app
- name: Clean
run: dotnet clean --configuration Release && dotnet nuget locals all --clear

2
ErsatzTV/ErsatzTV.csproj

@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
<!-- Build Target: Restore NPM packages using npm -->
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm ci" />
</Target>
<ItemGroup>

Loading…
Cancel
Save