Skip to content

pptr: upgrade to Puppeteer 22.4.1 #66

pptr: upgrade to Puppeteer 22.4.1

pptr: upgrade to Puppeteer 22.4.1 #66

Workflow file for this run

name: build
on:
push:
pull_request:
workflow_dispatch:
permissions: {}
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.local/share/pnpm
key: ${{ hashFiles('package.json') }}
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
rm -rf ~/.local/share/pnpm/store/v3/@ndn*
corepack pnpm install
- name: Check code style
run: |
corepack pnpm lint
git diff --exit-code
- run: corepack pnpm build
- name: Prepare demo site
run: |
cp content/demo.json public/content.json
echo 'https://ndnts-video.netlify.app/* https://ndnts-video.ndn.today/:splat 301!' > public/_redirects
- uses: nwtgck/[email protected]
with:
publish-dir: ./public/
production-deploy: true
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: ${{ github.sha }} ${{ github.run_id }}
enable-pull-request-comment: false
enable-commit-comment: false
enable-commit-status: false
enable-github-deployment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: c8f329f1-251e-4a13-8961-b4d746003a2b
if: ${{ github.repository == 'yoursunny/NDNts-video' && github.event_name == 'push' }}
- name: Prepare pushups site
run: |
cp content/pushups.json public/content.json
echo 'https://pushups.netlify.app/* https://pushups.ndn.today/:splat 301!' > public/_redirects
- uses: nwtgck/[email protected]
with:
publish-dir: ./public/
production-deploy: true
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: ${{ github.sha }} ${{ github.run_id }}
enable-pull-request-comment: false
enable-commit-comment: false
enable-commit-status: false
enable-github-deployment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: 6d2a1eee-af73-45a9-8f35-f446403acf76
if: ${{ github.repository == 'yoursunny/NDNts-video' && github.event_name == 'push' }}