Comments (8)
Do you see more logs before the fatal? to maybe point to the right code line it crashed.
from gh-action-bump-version.
Seeing the same problem with similar setup. No relevant logs before fatal crash
Run phips28/[email protected]
with:
commit-message: version bump to {{version}} [skip ci]
bump-policy: ignore
target-branch: master
minor-wording: feat,minor
major-wording: BREAKING CHANGE,major
rc-wording: pre-alpha,pre-beta,pre-rc
skip-tag: false
skip-commit: false
skip-push: false
default: patch
preid: rc
push: true
env:
GITHUB_TOKEN: ***
PACKAGEJSON_DIR: services/proton
Couldn't find any commits in this event, incrementing patch version...
tagPrefix:
commit messages: []
Ignoring any version bumps in commits...
config words: {
majorWords: [ 'BREAKING CHANGE', 'major' ],
minorWords: [ 'feat', 'minor' ],
patchWords: null,
preReleaseWords: [ 'pre-alpha', 'pre-beta', 'pre-rc' ]
}
version action after first waterfall: patch
version action after final decision: patch
currentBranch: master
✖ fatal Error: spawn npm ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:470:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
✖ fatal Failed to bump version
from gh-action-bump-version.
Can you try the latest version: https://github.com/phips28/gh-action-bump-version/releases/tag/v9.0.38
I added more logs what command fails.
It has something to do with the workspace (but I am not using this actively in my own setups)
from gh-action-bump-version.
Logging while using latest version (v9.0.38):
I am using:
defaults:
run:
working-directory: ./Projects
On the job itself. Is that what you mean by workspace?
Run phips[2]8/[email protected].[3]8
with:
tag-prefix: V
minor-wording: minor,Minor
major-wording: major,Major
rc-wording: release, RELEASE,Release, Alpha,alpha
commit-message: CI: bumps version to {{version}} [skip ci]
skip-tag: false
skip-commit: false
skip-push: false
default: patch
preid: rc
bump-policy: all
push: true
env:
NODE_VERSION: 16.13.1
PACKAGEJSON_DIR: ProjectA
GITHUB_TOKEN: ***
process.env.GITHUB_WORKSPACE D:\a\DU\DU/Projects
tagPrefix: V
commit messages: [ 'Update deploy CMS DEV.yml\nundefined' ]
config words: {
majorWords: [ 'major', 'Major' ],
minorWords: [ 'minor', 'Minor' ],
patchWords: null,
preReleaseWords: [ 'release', ' RELEASE', 'Release', ' Alpha', 'alpha' ]
}
version action after first waterfall: patch
version action after final decision: patch
runInWorkspace | command: git args: [ 'config', 'user.name', '"Automated Version Bump"' ]
runInWorkspace | command: git args: [
'config',
'user.email',
'"[email protected]"'
]
currentBranch: develop
runInWorkspace | command: npm args: [
'version',
'--allow-same-version=true',
'--git-tag-version=false',
'0.0.1'
]
✖ fatal Error: spawn npm ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:[4]
✖ fatal Failed to bump version
from gh-action-bump-version.
Are you running on a windows machine?
Because this has backslashes: process.env.GITHUB_WORKSPACE D:\a\DU\DU/Projects
Can you share your runs-on
:
https://github.com/phips28/gh-action-bump-version/blob/master/.github/workflows/push.yml#L11
from gh-action-bump-version.
Correct:
runs-on: windows-latest
from gh-action-bump-version.
Ok then this action is not working on windows as it seems 😄
never tested on windows, and will never use windows for dev purposes 😉
But you can make a PR to support windows:
- make sure backslash is used everywhere
- make sure npm commands are the same on windows as on linux systems
- check runInWorkspace() usage with spawn commands, if they work on windows as expected
from gh-action-bump-version.
Ah I see :P Can confirm this all works on ubuntu-latest indeed.
Will try to get this working on windows when I have the time!
Thanks for your assistance.
from gh-action-bump-version.
Related Issues (20)
- Build phips28/gh-action-bump-version/v8.0.18 Failing HOT 1
- Support pulling before pushing commits HOT 1
- Issue if the main branch is locked HOT 1
- Deployment event does not take in the target branch attribute
- v10? HOT 1
- Release not getting latest versions? HOT 2
- use >> $GITHUB_OUTPUT when runner is version 2.297.0 or greater
- Support hotfixes ("post-releases")
- Bumps minor or major instead of patch HOT 4
- Please support to change the package.json filename HOT 2
- Support for Selectively Adding Only package.json in git add HOT 1
- Trigger new workflow run on push HOT 1
- Add ability to provide value for parsing instead of commit messages HOT 1
- chore: bump node version HOT 1
- Error: Invalid format '├── https://github.com/sponsors/broofa' HOT 19
- Need to modify filename package.json to another filename. Is it possible? HOT 1
- Add option to add --no-verify to git commit HOT 3
- Anything that can be done to improve performance? HOT 4
- Issues with branch being up to date in a monorepo HOT 5
- Any tags pushed from the Bumped version commit not triggering any github workflows. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gh-action-bump-version.