Skip to content

Bump js-yaml

Bump js-yaml #25

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ main, release, dev ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
env:
GITHUB_PAGES: 'true'
VITE_APP_REVISION: ${{ github.sha }}
- name: Run tests
run: npm test
deploy:
needs: build-and-test
environment: github-pages
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/release'
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
env:
GOOGLE_SITE_VERIFICATION: ${{ vars.GOOGLE_SITE_VERIFICATION }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
- name: Install dependencies
run: npm install
- name: Build for production
run: npm run build:prod
env:
GITHUB_PAGES: 'true'
VITE_APP_REVISION: ${{ github.sha }}
- name: Create Google Site Verification File (token-named)
if: ${{ env.GOOGLE_SITE_VERIFICATION != '' }}
run: |
set -euo pipefail
FILENAME="dist/${GOOGLE_SITE_VERIFICATION}"
printf 'google-site-verification: %s' "$GOOGLE_SITE_VERIFICATION" > "$FILENAME"
- name: Upload Production Build Artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./dist
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4