name
This commit is contained in:
parent
c70c7a0293
commit
8d8cd06086
|
@ -17,7 +17,7 @@ jobs:
|
||||||
uses: "actions/setup-node@v1"
|
uses: "actions/setup-node@v1"
|
||||||
with:
|
with:
|
||||||
node-version: 8.10
|
node-version: 8.10
|
||||||
- name: "Bump Version"
|
- name: "Automated Version Bump"
|
||||||
uses: "phips28/gh-action-bump-version@master"
|
uses: "phips28/gh-action-bump-version@master"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: Bump Version
|
name: Automated Version Bump
|
||||||
description: Automated version bump for npm packages.
|
description: Automated version bump for npm packages.
|
||||||
runs:
|
runs:
|
||||||
using: docker
|
using: docker
|
||||||
|
|
2
index.js
2
index.js
|
@ -26,7 +26,7 @@ Toolkit.run(async tools => {
|
||||||
try {
|
try {
|
||||||
const current = pkg.version.toString()
|
const current = pkg.version.toString()
|
||||||
// set git user
|
// set git user
|
||||||
await tools.runInWorkspace('git', ['config', 'user.name', '"Bump Version"'])
|
await tools.runInWorkspace('git', ['config', 'user.name', '"Automated Version Bump"'])
|
||||||
await tools.runInWorkspace('git', ['config', 'user.email', '"gh-action-bump-version@users.noreply.github.com"'])
|
await tools.runInWorkspace('git', ['config', 'user.email', '"gh-action-bump-version@users.noreply.github.com"'])
|
||||||
|
|
||||||
await tools.runInWorkspace('git', ['checkout', 'master'])
|
await tools.runInWorkspace('git', ['checkout', 'master'])
|
||||||
|
|
Loading…
Reference in New Issue