commit
4a9b9ee95a
|
@ -12,7 +12,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: "Checkout source code"
|
||||
uses: "actions/checkout@v1"
|
||||
uses: "actions/checkout@v2"
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
- name: "cat package.json"
|
||||
|
@ -20,7 +20,7 @@ jobs:
|
|||
- name: "Setup Node.js"
|
||||
uses: "actions/setup-node@v1"
|
||||
with:
|
||||
node-version: 8.10.0
|
||||
node-version: 12
|
||||
- name: "Automated Version Bump"
|
||||
uses: "phips28/gh-action-bump-version@master"
|
||||
with:
|
||||
|
|
|
@ -7,6 +7,8 @@ It is meant to be used on every successful merge to master but
|
|||
you'll need to configured that workflow yourself. You can look to the
|
||||
[`.github/workflows/push.yml`](./.github/workflows/push.yml) file in this project as an example.
|
||||
|
||||
Make sure you use the `actions/checkout@v2` action!
|
||||
|
||||
### Workflow
|
||||
|
||||
* Based on the commit messages, increment the version from the lastest release.
|
||||
|
|
1
index.js
1
index.js
|
@ -54,7 +54,6 @@ Toolkit.run(async tools => {
|
|||
newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString().trim()
|
||||
newVersion = `${process.env['INPUT_TAG-PREFIX']}${newVersion}`
|
||||
console.log('new version:', newVersion)
|
||||
await tools.runInWorkspace('git', ['commit', '-a', '-m', `ci: ${commitMessage} ${newVersion}`])
|
||||
|
||||
const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`
|
||||
// console.log(Buffer.from(remoteRepo).toString('base64'))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gh-action-bump-version",
|
||||
"version": "6.0.2",
|
||||
"version": "6.0.5",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gh-action-bump-version",
|
||||
"version": "6.0.2",
|
||||
"version": "6.0.5",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/phips28/gh-action-bump-version.git"
|
||||
|
|
Loading…
Reference in New Issue