Skip to content

fix(deps): update js/ts dependencies #1311

fix(deps): update js/ts dependencies

fix(deps): update js/ts dependencies #1311

Workflow file for this run

name: CI & CD
on:
push:
pull_request:
types:
- opened
- synchronize
jobs:
ci:
name: CI
runs-on: ubuntu-22.04
timeout-minutes: 10
# Only run if this is not a pull request, or for pull requests on forks
if: github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name != 'AlexTMjugador/Home'
steps:
- name: 📥 Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: 🧰 Setup Node.js
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 18
- name: 📥 Install dependencies
run: npm ci
- name: "🔍 Static analysis: run Prettier"
run: npm run format
- name: "🔍 Static analysis: run ESLint"
run: npm run lint
- name: 🔨 Build website
run: npm run build
- name: 📤 Upload website distribution bundle
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with:
name: Web distribution bundle
path: dist
- name: "🔍 Run Lighthouse CI"
uses: treosh/lighthouse-ci-action@03becbfc543944dd6e7534f7ff768abb8a296826 # v10
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
with:
temporaryPublicStorage: true
cd:
name: CD
runs-on: ubuntu-22.04
timeout-minutes: 10
needs: ci
permissions:
deployments: write
steps:
- name: 📥 Download website distribution bundle
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3
with:
name: Web distribution bundle
path: dist
- name: 📤 Deploy to Cloudflare Pages
uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1
with:
accountId: ${{ secrets.CF_ACCOUNT_ID }}
apiToken: ${{ secrets.CF_API_TOKEN }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: home
branch: ${{ github.ref_name }}
directory: dist