Bump eslint-plugin-jest from 26.1.3 to 28.8.3 #327
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: 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 }}). |