Skip to content

#18 FetchEvent.respondWith return value is none #60

#18 FetchEvent.respondWith return value is none

#18 FetchEvent.respondWith return value is none #60

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Before install
run: npm set //npm.pkg.github.com/:_authToken ${{secrets.TOKEN_FOR_WORKFLOWS}}
- name: Install dependencies
run: npm ci
# Uncomment this when the karma tests are in green
# - name: Unit tests
# run: npm run test -- --watch=false --no-progress --browsers=ChromeHeadless --code-coverage
- name: Build and deploy to GitHub pages
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: npm run deploy -- --name=${{secrets.USERNAME_FOR_WORKFLOWS}} --email="<>" --base-href=/sitmun-viewer-app/ --build-target=viewer-app:build:testdeployment