Skip to content

Bump eslint-plugin-svelte from 2.46.1 to 3.17.1 #10

Bump eslint-plugin-svelte from 2.46.1 to 3.17.1

Bump eslint-plugin-svelte from 2.46.1 to 3.17.1 #10

Workflow file for this run

name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Build & Test
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Audit dependencies
run: npm audit --audit-level=high
- name: Type check
run: npm run check
- name: Test
run: npm test
- name: Build
run: npm run build
deploy:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-24.04
needs: test
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
environment: production
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy to Cloudflare Pages
# cloudflare/wrangler-action v3.15.0
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy .svelte-kit/cloudflare --project-name=samlguy