Skip to content

Commit

Permalink
chore: removed extra caching
Browse files Browse the repository at this point in the history
  • Loading branch information
wolffshots committed Mar 4, 2024
1 parent cab79af commit 7e14db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Svelte App on Release

on:
release:
types: [published]
types: [prereleased, published]
env:
BUILD_NAME: Sensor_Viewer

Expand All @@ -19,16 +19,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '21.6.2' # You can change the Node.js version as needed

- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
./node_modules
./web/node_modules
./.svelte-kit
./web/.svelte-kit
key: npm-${{ hashFiles('**/package-lock.json') }}
cache: npm

- run: npm ci

Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/test-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ jobs:
with:
node-version: v21.6.2
cache: npm
- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
./node_modules
./web/node_modules
./.svelte-kit
./web/.svelte-kit
key: npm-${{ hashFiles('**/package-lock.json') }}
- name: Install npm
run: npm clean-install
- name: Build project
Expand All @@ -53,15 +44,6 @@ jobs:
with:
node-version: v21.6.2
cache: npm
- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
./node_modules
./web/node_modules
./.svelte-kit
./web/.svelte-kit
key: npm-${{ hashFiles('**/package-lock.json') }}
- name: Install npm
run: npm ci
- name: Run unit tests
Expand All @@ -82,15 +64,6 @@ jobs:
with:
node-version: v21.6.2
cache: npm
- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
./node_modules
./web/node_modules
./.svelte-kit
./web/.svelte-kit
key: npm-${{ hashFiles('**/package-lock.json') }}
- name: Install npm
run: npm ci
- name: Pull Vercel Environment Information
Expand All @@ -111,15 +84,6 @@ jobs:
with:
node-version: v21.6.2
cache: npm
- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
./node_modules
./web/node_modules
./.svelte-kit
./web/.svelte-kit
key: npm-${{ hashFiles('**/package-lock.json') }}
- name: Install npm
run: npm ci
- name: Pull Vercel Environment Information
Expand Down

0 comments on commit 7e14db5

Please sign in to comment.