This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
markdown2png/.gitea/workflows/deploy.yml
riccardo 93c6458a9f
All checks were successful
Deploy / lint-build-deploy (push) Successful in 1m20s
fix: use npm install when no lockfile
2026-01-18 16:35:26 +00:00

34 lines
680 B
YAML

name: Deploy
on:
push:
branches: [ main ]
jobs:
lint-build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Run linting
run: npm run lint
- name: Build
run: npm run build
- name: Deploy notification
run: echo "Build successful! Deploy step would go here"