Skip to content

Commit c043d83

Browse files
committed
Remove NPM artifacts on publish
1 parent 61aa2c8 commit c043d83

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/publish-preview.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ jobs:
2929
- name: Build CSS
3030
working-directory: ./BytexDigital.Blazor.Components.CookieConsent
3131
run: npm run build
32+
33+
- name: Remove NPM artifacts
34+
working-directory: ./BytexDigital.Blazor.Components.CookieConsent
35+
run: |
36+
rm -fr node_modules
37+
rm -f package.json
38+
rm -f package-lock.json
3239
3340
# - name: Build project
3441
# run: dotnet build -c Release -p:VersionSuffix=preview.$(date +%s)

.github/workflows/publish-production.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ jobs:
2929
- name: Build CSS
3030
working-directory: ./BytexDigital.Blazor.Components.CookieConsent
3131
run: npm run build
32+
33+
- name: Remove NPM artifacts
34+
working-directory: ./BytexDigital.Blazor.Components.CookieConsent
35+
run: |
36+
rm -fr node_modules
37+
rm -f package.json
38+
rm -f package-lock.json
3239
3340
# - name: Build project
3441
# run: dotnet build -c Release

0 commit comments

Comments
 (0)