Coder Social home page Coder Social logo

Comments (6)

CWSites avatar CWSites commented on August 16, 2024 1

Oh I see what's going on here, the cat is printing the root package.json but the PACKAGEJSON_DIR is what controls what file is being written during the bump.

Doing this I was able to get it to automatically bump the alpha when I used the rc-wording for alpha

      - name: 'Automated Version Bump'
        id: version-bump
        uses: 'phips28/gh-action-bump-version@master'
        env:
          GITHUB_TOKEN: ${{ github.token }}
          PACKAGEJSON_DIR: 'libs/dot-components'
        with:
          commit-message: 'CI: bumps version to {{version}} [skip ci]'
          default: prerelease
          major-wording: 'MAJOR'
          minor-wording: 'minor'
          patch-wording: 'patch'
          rc-wording: 'RELEASE,alpha,beta'
          tag-prefix: ''
          target-branch: 'master'
          preid: 'alpha'
          skip-tag: 'true'

from gh-action-bump-version.

phips28 avatar phips28 commented on August 16, 2024

can you try without leading ./ ?

I dont use this myself, but maybe thats the problem when concatinating the path in this code:

// Change working directory if user defined PACKAGEJSON_DIR
if (process.env.PACKAGEJSON_DIR) {
  process.env.GITHUB_WORKSPACE = `${process.env.GITHUB_WORKSPACE}/${process.env.PACKAGEJSON_DIR}`
  process.chdir(process.env.GITHUB_WORKSPACE)
}

from gh-action-bump-version.

phips28 avatar phips28 commented on August 16, 2024

is there maybe an error from the chdir?

from gh-action-bump-version.

CWSites avatar CWSites commented on August 16, 2024

No errors, tried it without ./ as well. I was able to get it to work by doing the following

      - name: 'cat libs/dot-components/package.json'
        run: cat ./libs/dot-components/package.json

from gh-action-bump-version.

phips28 avatar phips28 commented on August 16, 2024

its working? cat just prints the file?

from gh-action-bump-version.

CWSites avatar CWSites commented on August 16, 2024

correct, as a side question before we did these actions we were already using the format 0.0.0-alpha.XX is there a way to have it intelligently pick up from the current version number?

Screen Shot 2021-04-27 at 3 17 34 PM

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.