Skip to content

build(deps-dev): bump svelte-eslint-parser from 0.39.2 to 0.40.0 #913

build(deps-dev): bump svelte-eslint-parser from 0.39.2 to 0.40.0

build(deps-dev): bump svelte-eslint-parser from 0.39.2 to 0.40.0 #913

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: 'Check code quality'
on:
push:
branches:
- main
- staging
pull_request:
branches:
- '**'
jobs:
check-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/Iron
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 9
run_install: true
- name: Check TypeScript
run: pnpm tsc
check-prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/Iron
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 9
run_install: true
- name: Check Prettier & Eslint
run: pnpm run lint
deploy-to-cloudflare:
needs: [check-typescript, check-prettier]
if: ${{ github.event_name != 'pull_request' || github.actor != 'dependabot[bot]' }}
environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }}
env:
VITE_BACKEND_URL: ${{ vars.BACKEND_URL }}
permissions:
contents: read
deployments: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: lts/Iron
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 9
run_install: true
- name: Build
run: pnpm run build
- name: Publish to Cloudflare Pages
uses: unlike-ltd/github-actions-cloudflare-pages@fb5958dd486c5c2cb38b3a843e1efb160878060d #v1.3.2
id: pages
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: 'build'
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }}