Добавить .forgejo/workflows/build.yaml
This commit is contained in:
parent
40fa4491bb
commit
6acc88e953
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/build.yaml
Normal file
24
.forgejo/workflows/build.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Node.js Automated Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # или master, смотря какая ветка у тебя главная
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
# Если используешь стандартный runner, можно указать образ напрямую:
|
||||
container:
|
||||
image: node:20-alpine
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci # или npm install, но ci быстрее и надежнее для CI/CD
|
||||
|
||||
- name: Run Build
|
||||
run: npm run build
|
||||
|
||||
Loading…
Add table
Reference in a new issue