Skip to content

Commit 4d3d9b5

Browse files
committed
CI(deploy): replace yarn by npm in deploy action.
1 parent cf275bb commit 4d3d9b5

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/workflows/deploy.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@ jobs:
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v1
14-
- name: Install git
15-
run: sudo apt-get install git -y # Used by yarn install
16-
- name: Yarn install
17-
uses: borales/[email protected]
18-
with:
19-
cmd: install
20-
- name: Yarn build
21-
uses: borales/[email protected]
22-
with:
23-
cmd: build:prod
14+
- name: Install and Build
15+
run: |
16+
npm install
17+
npm run build:prod
2418
- name: Deploy
2519
uses: maxheld83/[email protected]
2620
env:

src/pwa/service-worker.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,5 @@ self.addEventListener('message', (e) => {
99
})
1010

1111
/* eslint-disable no-undef */
12-
workbox.clientsClaim()
13-
14-
// The precaching code provided by Workbox. You don't need to change this part.
15-
self.__precacheManifest = [].concat(self.__precacheManifest || [])
16-
workbox.precaching.suppressWarnings()
17-
workbox.precaching.precacheAndRoute(self.__precacheManifest, {})
12+
workbox.core.clientsClaim()
13+
workbox.precaching.precacheAndRoute(self.__precacheManifest || [])

0 commit comments

Comments
 (0)