release.yml 1010 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: GitHub Release
  2. on:
  3. push:
  4. branches:
  5. - support/github-actions
  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: Get RELEASE_VERSION
  22. run: |
  23. export RELEASE_VERSION=`npm run version --silent`
  24. echo "export RELEASE_VERSION=$RELEASE_VERSION"
  25. - name: Commit
  26. run: |
  27. git commit -am "Release $RELEASE_VERSION"
  28. - name: Push changes
  29. uses: ad-m/github-push-action@master
  30. with:
  31. github_token: ${{ secrets. PERSONAL_ACCESS_TOKEN }}
  32. - name: Get RELEASE_GIT_COMMIT
  33. run: |
  34. export RELEASE_GIT_COMMIT=`git rev-parse HEAD`
  35. echo "export RELEASE_GIT_COMMIT=$RELEASE_GIT_COMMIT"