Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 70ac791

Browse files
committed
[action]: run project generator from action only;
no need to build project manually everytime
1 parent 5a7505e commit 70ac791

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Project Generator
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
generator:
9+
if: github.actor != 'github-actions[bot]'
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [20.x]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: 'Installing Deps'
23+
run: npm i -g pnpm && pnpm i
24+
- name: 'Generate Project'
25+
run: node app-builder.js
26+
- name: Commit and push project
27+
run: |
28+
git config user.name "github-actions[bot]"
29+
git config user.email "github-actions[bot]@users.noreply.github.com"
30+
git add .
31+
git commit -m "[bot,builder]: ran builder;" || echo "No changes to commit"
32+
git push

0 commit comments

Comments
 (0)