Skip to content

Bump eslint-plugin-jest from 26.1.3 to 28.8.1 #314

Bump eslint-plugin-jest from 26.1.3 to 28.8.1

Bump eslint-plugin-jest from 26.1.3 to 28.8.1 #314

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/github-pages-deploy-action@4.1.0
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 }}).