mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
build: fix npm github actions
This commit is contained in:
parent
41db69ee7a
commit
bb9e671f27
15
.github/workflows/hexabot-npm.yml
vendored
15
.github/workflows/hexabot-npm.yml
vendored
@ -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
|
||||
|
15
.github/workflows/widget-npm.yml
vendored
15
.github/workflows/widget-npm.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user