You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-lesspass-pure-package.yml 1.1 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: build-lesspass-pure-package
  2. on:
  3. push:
  4. paths:
  5. - "packages/lesspass-pure/**"
  6. - "!packages/lesspass-pure/dist/**"
  7. jobs:
  8. test:
  9. runs-on: ubuntu-18.04
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions/setup-node@v1
  13. with:
  14. node-version: "12"
  15. - name: git hash
  16. run: |
  17. git rev-parse HEAD
  18. - name: test lesspass-pure package
  19. run: |
  20. cd packages/lesspass-pure
  21. yarn install
  22. yarn test
  23. build-and-commit-and-push:
  24. runs-on: ubuntu-18.04
  25. needs: test
  26. steps:
  27. - uses: actions/checkout@v2
  28. with:
  29. ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
  30. - uses: actions/setup-node@v1
  31. with:
  32. node-version: "12"
  33. - name: build lesspass-pure package
  34. run: |
  35. cd packages/lesspass-pure
  36. yarn install
  37. yarn build
  38. - name: commit build and push
  39. run: |
  40. git config --global user.name 'botsito'
  41. git config --global user.email 'botsito@lesspass.com'
  42. git add .
  43. git commit -m "Auto build for lesspass-pure"
  44. git push