Code Monkey home page Code Monkey logo

Comments (8)

phips28 avatar phips28 commented on June 30, 2024

Do you see more logs before the fatal? to maybe point to the right code line it crashed.

from gh-action-bump-version.

EvgenySerebrenny avatar EvgenySerebrenny commented on June 30, 2024

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.

phips28 avatar phips28 commented on June 30, 2024

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.

Rutger-Knijnenburg avatar Rutger-Knijnenburg commented on June 30, 2024

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.

phips28 avatar phips28 commented on June 30, 2024

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.

Rutger-Knijnenburg avatar Rutger-Knijnenburg commented on June 30, 2024

Correct:

runs-on: windows-latest

from gh-action-bump-version.

phips28 avatar phips28 commented on June 30, 2024

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.

Rutger-Knijnenburg avatar Rutger-Knijnenburg commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.