examples-build.yml 880 B

1234567891011121314151617181920212223242526272829303132333435
  1. # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
  3. name: Build Examples
  4. on:
  5. push:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. node-version: [16.x]
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Use Node.js ${{ matrix.node-version }}
  16. uses: actions/setup-node@v2
  17. with:
  18. node-version: ${{ matrix.node-version }}
  19. cache: 'npm'
  20. - run: npm ci
  21. - run: npm run build-examples --if-present
  22. - name: Commit Examples
  23. uses: EndBug/add-and-commit@v7
  24. with:
  25. add: 'example/bundle'
  26. branch: examples
  27. message: 'update builds'