Skip to content

build(deps-dev): bump vite from 6.0.11 to 6.1.0 (#353) #475

build(deps-dev): bump vite from 6.0.11 to 6.1.0 (#353)

build(deps-dev): bump vite from 6.0.11 to 6.1.0 (#353) #475

Workflow file for this run

name: Deploy Github Pages
on:
push:
branches:
- main
schedule:
- cron: "0 13 * * 6"
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/[email protected]
with:
node-version: "22.x"
- name: Cache dependencies
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Restore Cached Card List
uses: actions/cache/[email protected]
if: ${{ github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' }}
with:
path: data/default-cards.json
key: default-cards.json-${{ github.run_id }}
restore-keys: |
default-cards.json-
- run: echo "VITE_BUILD_SHA=$GITHUB_SHA" >> $GITHUB_ENV
- run: npm ci
- run: npm run cards
- run: VITE_BUILD_SHA=$GITHUB_SHA npm run build
- run: npm run lint
- run: npm run test
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Save Cached Card List
uses: actions/cache/[email protected]
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
with:
path: data/default-cards.json
key: default-cards.json-${{ github.run_id }}
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v4