build.yml 668 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Build/release
  2. on: push
  3. jobs:
  4. release:
  5. runs-on: ${{ matrix.os }}
  6. strategy:
  7. matrix:
  8. os: [macos-latest, ubuntu-latest, windows-latest]
  9. steps:
  10. - name: Check out Git repository
  11. uses: actions/checkout@v1
  12. - name: Set up Node
  13. uses: actions/setup-node@v1
  14. with:
  15. node-version: 16
  16. - name: Set up Python
  17. uses: actions/setup-python@v2
  18. with:
  19. python-version: 3.x
  20. - name: Install Dependencies
  21. run: npm ci
  22. shell: bash
  23. - name: Build
  24. env:
  25. GH_TOKEN: ${{ secrets.github_token }}
  26. run: npm run dist
  27. shell: bash