build: fix npm github actions

This commit is contained in:
Mohamed Marrouchi 2024-12-10 12:52:22 +01:00
parent 41db69ee7a
commit bb9e671f27
2 changed files with 18 additions and 12 deletions

View File

@ -19,14 +19,15 @@ jobs:
node-version: '18' # Ensure it matches your project requirements
cache: 'npm'
- name: Navigate to API Folder
run: cd api/
- name: Install dependencies
run: npm ci
run: |
cd api/
npm ci
- name: Build the package
run: npm run build
run: |
cd api/
npm run build
- name: Determine release type
id: determine-release
@ -55,4 +56,6 @@ jobs:
- name: Publish to npm
if: env.release != 'none'
run: npm publish
run: |
cd api/
npm publish

View File

@ -19,14 +19,15 @@ jobs:
node-version: '18' # Ensure it matches your project requirements
cache: 'npm'
- name: Navigate to Widget Folder
run: cd widget/
- name: Install dependencies
run: npm ci
run: |
cd widget/
npm ci
- name: Build the package
run: npm run build
run: |
cd widget/
npm run build
- name: Determine release type
id: determine-release
@ -55,4 +56,6 @@ jobs:
- name: Publish to npm
if: env.release != 'none'
run: npm publish
run: |
cd widget/
npm publish