This commit is contained in:
Marko Frankovic 2025-03-13 09:58:25 +01:00
parent 3a093ca95d
commit 96dcc980e9
2 changed files with 19 additions and 6 deletions

View File

@ -10,6 +10,8 @@ on:
required: true required: true
ACTIVE_MQ_ADMIN_PASSWORD: ACTIVE_MQ_ADMIN_PASSWORD:
required: true required: true
NODE_VERSION:
required: true
jobs: jobs:
build: build:
@ -22,10 +24,12 @@ jobs:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node 21 - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 21 node-version: $NODE_VERSION
env:
NODE_VERSION: ${{ secrets.NODE_VERSION }}
- name: Run NPM install - name: Run NPM install
run: | run: |
@ -38,7 +42,7 @@ jobs:
NPM_NEXUS_AUTH: ${{ secrets.NPM_NEXUS_AUTH }} NPM_NEXUS_AUTH: ${{ secrets.NPM_NEXUS_AUTH }}
- name: Run NPM build - name: Run NPM build
run: npm run build run: npm run build-prod
- name: Setup AWS Cli - name: Setup AWS Cli
run: | run: |

View File

@ -10,6 +10,11 @@ on:
required: true required: true
ACTIVE_MQ_ADMIN_PASSWORD: ACTIVE_MQ_ADMIN_PASSWORD:
required: true required: true
BUILD_SCRIPT_NAME:
required: true
NODE_VERSION:
required: true
jobs: jobs:
build: build:
@ -22,10 +27,12 @@ jobs:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node 21 - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 21 node-version: $NODE_VERSION
env:
NODE_VERSION: ${{ secrets.NODE_VERSION }}
- name: Set current date as env variable - name: Set current date as env variable
run: echo "NOW=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV run: echo "NOW=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
@ -41,7 +48,9 @@ jobs:
NPM_NEXUS_AUTH: ${{ secrets.NPM_NEXUS_AUTH }} NPM_NEXUS_AUTH: ${{ secrets.NPM_NEXUS_AUTH }}
- name: Run NPM build - name: Run NPM build
run: npm run build run: npm run $BUILD_SCRIPT_NAME
env:
BUILD_SCRIPT_NAME: ${{ secrets.BUILD_SCRIPT_NAME }}
- name: Setup AWS Cli - name: Setup AWS Cli
run: | run: |