automatically increases patch number #5

This commit is contained in:
undergroundwires
2020-04-26 17:44:54 +01:00
parent 691f989682
commit 3e3bc07576
7 changed files with 23 additions and 8 deletions

View File

@@ -6,7 +6,26 @@ on:
- master
jobs:
increase-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Setup GIT
run: |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config user.name "$GITHUB_ACTOR"
- name: Install and Publish
run: |
npm version patch -m "🚀 upgraded to %s"
git push --set-upstream origin master && git push --tags
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
build-and-deploy:
needs: increase-version
runs-on: ubuntu-18.04
steps:
-