Skip to content

Commit

Permalink
CI(deploy): replace yarn by npm in deploy action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Armour committed Apr 3, 2020
1 parent cf275bb commit 4d3d9b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Install git
run: sudo apt-get install git -y # Used by yarn install
- name: Yarn install
uses: borales/actions-yarn@v2.0.0
with:
cmd: install
- name: Yarn build
uses: borales/actions-yarn@v2.0.0
with:
cmd: build:prod
- name: Install and Build
run: |
npm install
npm run build:prod
- name: Deploy
uses: maxheld83/ghpages@v0.2.1
env:
Expand Down
8 changes: 2 additions & 6 deletions src/pwa/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ self.addEventListener('message', (e) => {
})

/* eslint-disable no-undef */
workbox.clientsClaim()

// The precaching code provided by Workbox. You don't need to change this part.
self.__precacheManifest = [].concat(self.__precacheManifest || [])
workbox.precaching.suppressWarnings()
workbox.precaching.precacheAndRoute(self.__precacheManifest, {})
workbox.core.clientsClaim()
workbox.precaching.precacheAndRoute(self.__precacheManifest || [])

0 comments on commit 4d3d9b5

Please sign in to comment.