action.yml 608 B

123456789101112131415161718192021222324252627
  1. ---
  2. name: 'build-npm'
  3. description: builds the static dashboard files for the app
  4. runs:
  5. using: "composite"
  6. steps:
  7. - name: Setup Node
  8. uses: actions/setup-node@v3
  9. with:
  10. node-version: 16
  11. - name: Install NPM Dependencies
  12. shell: bash
  13. run: |
  14. cd dashboard
  15. npm i --legacy-peer-deps
  16. - name: Run NPM Build
  17. shell: bash
  18. run: |
  19. cd dashboard
  20. npm run build
  21. - name: Store NPM Static Files
  22. uses: actions/upload-artifact@v3
  23. with:
  24. name: npm-static-files
  25. path: dashboard/build/
  26. retention-days: 1