feat: add workflow call actions

This commit is contained in:
nafees nazik
2024-01-05 01:11:28 +05:30
parent 0c12e34c38
commit c86f79dd7b
2 changed files with 37 additions and 0 deletions

16
.github/workflows/node-install.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Node install
on:
workflow_call:
jobs:
setup:
name: Setup Node & cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Copy env
run: cp .env.example .env
- uses: ./.github/actions/node-install

21
.github/workflows/production-build.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Production Build
on:
workflow_call:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Copy env
run: cp .env.example .env
- uses: ./.github/actions/node-install
- uses: ./.github/actions/cache-build