Skip to content

Commit 8cb640b

Browse files
committed
No npm cache needed in Maven Java project
1 parent 9c64a72 commit 8cb640b

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

.github/workflows/build-main.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ jobs:
3434
${{ runner.os }}-build-
3535
${{ runner.os }}-
3636
37-
- name: Cache node modules
38-
uses: actions/cache@v2
39-
env:
40-
cache-name: cache-node-modules
41-
with:
42-
path: ~/.npm
43-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
44-
restore-keys: |
45-
${{ runner.os }}-build-${{ env.cache-name }}-
46-
4737
- name: Build Tag with Maven
4838
if: ${{ github.ref_type == 'tag' }}
4939
run: |
@@ -83,18 +73,6 @@ jobs:
8373
${{ runner.os }}-build-
8474
${{ runner.os }}-
8575
86-
- name: Cache node modules
87-
uses: actions/cache@v2
88-
env:
89-
cache-name: cache-node-modules
90-
with:
91-
path: ~/.npm
92-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
93-
restore-keys: |
94-
${{ runner.os }}-build-${{ env.cache-name }}-
95-
${{ runner.os }}-build-
96-
${{ runner.os }}-
97-
9876
- name: Publish SNAPSHOT version to GitHub Packages (we can skip tests, since we only deploy, if the build workflow succeeded)
9977
run: mvn -B --no-transfer-progress deploy -DskipTests
10078
env:

.github/workflows/release-to-maven-central.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ jobs:
3939
${{ runner.os }}-build-
4040
${{ runner.os }}-
4141
42-
- name: Cache node modules
43-
uses: actions/cache@v2
44-
env:
45-
cache-name: cache-node-modules
46-
with:
47-
path: ~/.npm
48-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
49-
restore-keys: |
50-
${{ runner.os }}-build-${{ env.cache-name }}-
51-
5242
- name: Set projects Maven version to GitHub Action GUI set version
5343
run: mvn versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}" --no-transfer-progress
5444

0 commit comments

Comments
 (0)