Skip to content

Update libs with manual check (#30) #78

Update libs with manual check (#30)

Update libs with manual check (#30) #78

name: "Build App & Deploy to Github Pages"
on:
push:
branches:
- master
workflow_dispatch: { }
jobs:
build_and_deploy:
name: Build and Deploy
concurrency:
group: build-and-deploy
cancel-in-progress: true
runs-on: ubuntu-24.04
env:
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Run prettier
run: npm run format -- --check
- name: Run tests
run: npm run test:unit -- --run
- name: Build project
run: npm run build
- name: Prerender project
run: npm run prerender
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run e2e tests
run: PLAYWRIGHT_USE_BUILD=1 npm run test:e2e
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: gh-pages