Skip to content

chore(deps): bump js-yaml from 4.1.0 to 4.1.1 in the npm_and_yarn group across 1 directory #1010

chore(deps): bump js-yaml from 4.1.0 to 4.1.1 in the npm_and_yarn group across 1 directory

chore(deps): bump js-yaml from 4.1.0 to 4.1.1 in the npm_and_yarn group across 1 directory #1010

Workflow file for this run

name: CD/CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
NODE_VERSION: '22'
YARN_VERSION: '4.9.2'
jobs:
lint-and-typecheck:
name: Lint & Type Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Run ESLint
run: yarn lint
- name: Run TypeScript type check
run: yarn typecheck
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
needs: lint-and-typecheck
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build Next.js application
run: yarn build
- name: Check build output
run: |
if [ ! -d ".next" ]; then
echo "Build failed - .next directory not found"
exit 1
fi
echo "Build successful - .next directory exists"
# docker-build-verify:
# name: Docker Build (no push)
# runs-on: ubuntu-latest
# needs: lint-and-typecheck
# steps:
# - name: Checkout code
# uses: actions/checkout@v5
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
#
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
#
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Build image (validate only)
# run: |
# docker buildx create --use
# docker buildx build \
# --platform linux/amd64,linux/arm64 \
# --cache-from type=registry,ref=ghcr.io/anitrend/website:cache,mode=max \
# --tag ghcr.io/anitrend/website:test-${{ github.sha }} \
# .
# working-directory: .
build-matrix:
name: Build Matrix Test
runs-on: ${{ matrix.os }}
needs: lint-and-typecheck
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['20', '22']
include:
- os: ubuntu-latest
architecture: x64
- os: ubuntu-latest
architecture: arm64
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build application
run: yarn build
deployment-ready:
name: Deployment Ready Check
runs-on: ubuntu-latest
needs: [build-and-test, build-matrix]
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Verify deployment readiness
run: |
echo "✅ All checks passed - ready for deployment"
echo "Build artifacts available: $(ls -la .next/ | wc -l) files"
echo "Public assets available: $(ls -la public/ | wc -l) files"
- name: Set deployment status
run: |
echo "DEPLOYMENT_READY=true" >> $GITHUB_ENV
echo "BUILD_TIMESTAMP=$(date -u +%Y%m%d-%H%M%S)" >> $GITHUB_ENV