Skip to content

Bump eslint-plugin-react from 7.29.4 to 7.37.2 #338

Bump eslint-plugin-react from 7.29.4 to 7.37.2

Bump eslint-plugin-react from 7.29.4 to 7.37.2 #338

Workflow file for this run

name: Add PR Demo
on:
pull_request:
types: [opened, synchronize]
jobs:
add-pr-demo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set-up node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Build
run: |
npm ci
npm run build-prod
npm run build-csp
npm run build-dev
npm run build-css
npm run build-benchmarks
npm run generate-typings
cp test/integration/pr-demo/index.html dist/index.html
- name: Empty postinstall.js
run: |
echo "// empty in published package" > postinstall.js
- name: Write dist/package.json
run: |
echo "{ \"type\": \"commonjs\" }" > dist/package.json
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
target-folder: pulls/${{ github.event.number }}
- name: Add comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-demo
message: |
Uploaded [build output](https://github.com/wipfli/maplibre-gl-js/tree/gh-pages/pulls/${{ github.event.number }}) and created a [live demo](https://maplibre.org/maplibre-gl-js/pulls/${{ github.event.number }}).