release.yml 682 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: GitHub Release
  2. on:
  3. push:
  4. branches:
  5. - release/**
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v1
  11. with:
  12. fetch-depth: 1
  13. - name: Init Git
  14. run: |
  15. git config --local user.name "GitHub Action"
  16. git config --local user.email "info@weseek.co.jp"
  17. - name: Bump version
  18. run: |
  19. npm version patch
  20. sh ./bin/github-actions/bump-version.sh
  21. - name: Commit
  22. run: |
  23. git commit -am "Release $RELEASE_VERSION"
  24. - name: Push tag
  25. uses: ad-m/github-push-action@master
  26. with:
  27. branch: null
  28. github_token: ${{ secrets. GITHUB_TOKEN }}