[Snyk] Security upgrade express from 4.17.1 to 4.20.0 #238
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Percy Snapshots | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.js' | |
- 'package.json' | |
- '**.njk' | |
- '**.scss' | |
- '**.yml' | |
pull_request: | |
paths: | |
- '**.js' | |
- 'package.json' | |
- '**.njk' | |
- '**.scss' | |
- '**.yml' | |
jobs: | |
percy: | |
if: ${{ github.repository == 'GoogleChrome/developer.chrome.com' }} | |
runs-on: ubuntu-latest | |
env: | |
# Increase RAM limit, and make uncaught exceptions crash (default in 16+). | |
NODE_OPTIONS: --max_old_space_size=4096 --unhandled-rejections=strict | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1.0.0 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
- name: Cache node_modules | |
uses: actions/cache@v1 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install | |
run: npm ci | |
- name: Percy | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
run: npm run percy |