my-portfolio/.gitea/workflows/node-build.yaml

20 lines
404 B
YAML
Raw Normal View History

2024-04-27 07:17:06 +00:00
name: Node.js CI
on: [push]
jobs:
2024-04-27 07:46:13 +00:00
build_app:
2024-04-27 07:17:06 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
2024-04-27 07:20:37 +00:00
- run: npm ci
- run: npm run build --production --if-present
2024-04-27 07:46:13 +00:00
build_image:
needs: build_app
runs:
using: 'docker'
image: 'Dockerfile'