build(deps-dev): bump gh-pages from 6.2.0 to 6.3.0 (#2798) #11061
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: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: | | |
npm ci | |
npx playwright install --with-deps | |
- name: Run checks | |
run: | | |
npm audit --only=prod --audit-level=moderate | |
npm run prettier:check | |
npm run lint | |
npm run es-check | |
npm run doc:check | |
npm run doc | |
npm run bundlesize | |
- name: Run tests | |
run: | | |
npm run test:gha | |
- name: Run e2e tests | |
run: | | |
npm run start:nohashing & | |
npm run e2e | |
- name: Publish Coveralls report | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Deploy app | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
npm run gh-pages -- -u "github-actions-bot <[email protected]>" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |