Update dependency riot to v9 #22221
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: Test that the site builds | |
on: [push, pull_request] | |
permissions: | |
contents: write # To push a preview to gh pages | |
pull-requests: write # To comment on the PR | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install dependencies | |
run: npm ci | |
- run: npm test | |
- name: Deploy Preview | |
if: ${{github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]')}} | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: out | |
target-folder: preview/preview/preview/${{github.event.number}} | |
- name: Comment about preview | |
if: ${{github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]')}} | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
message: | | |
Preview this PR: https://custom-elements-everywhere.com/preview/preview/preview/${{github.event.number}}/ |