chore(release): 1.4.0 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release action | |
on: | |
push: | |
branches: | |
- release** | |
jobs: | |
build: | |
name: Release | |
if: "!contains(github.event.head_commit.author, '[email protected]')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: set env | |
run: echo BRANCH=$(echo -n "${GITHUB_REF#refs/heads/}") >> $GITHUB_ENV | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 10 | |
- run: npm i | |
- name: Bump version | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
npm run release | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{env.BRANCH}} | |
force: true | |
tags: true |