Update .github/workflows/npm.yaml

This commit is contained in:
Zakary Timson 2023-11-24 17:54:50 +00:00
parent f8f88ba0dc
commit e11c2f61ca

View File

@ -40,10 +40,14 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: npm run build:prod || npm run build run: npm run build:prod || npm run build
working-directory: ${{inputs.path}} working-directory: ${{inputs.path}}
- name: Artifact Name
if: ${{inputs.artifacts}} != ''
run: echo "ARTIFACTS=$(echo ${{inputs.artifact_name}} | sed s%/%_% )" >> $GITHUB_ENV
- name: Upload Artifacts - name: Upload Artifacts
if: ${{inputs.artifacts}} != '' if: ${{env.ARTIFACTS}} != ''
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: echo ${{inputs.artifact_name}} | sed s%/%_% name: ${{env.ARTIFACTS}}
path: ${{inputs.artifacts}} path: ${{inputs.artifacts}}