mirror of
https://github.com/tmaier/asn-qr-code-label-generator.git
synced 2026-03-14 16:43:31 +00:00
- 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
38 lines
782 B
YAML
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
|