asn-qr-code-label-generator/.github/workflows/generate-pdf.yml
Claude 499c842b45
Add lockfile, dependabot, and improve PDF script reliability
- Add package-lock.json for reproducible builds (npm ci)
- Add dependabot.yml for npm and GitHub Actions updates
- Add .gitignore for node_modules and generated PDF
- Update workflow to use npm ci with caching
- Improve PDF script with proper error handling and HTTP server
2025-11-23 16:41:14 +00:00

38 lines
782 B
YAML

name: Generate PDF Labels
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
generate-pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright Chromium
run: npx playwright install chromium
- name: Generate PDF
run: npm run generate-pdf
- name: Upload PDF artifact
uses: actions/upload-artifact@v4
with:
name: asn-labels-pdf
path: asn-labels.pdf
retention-days: 30