Comments (6)
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.
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.
is there maybe an error from the chdir
?
from gh-action-bump-version.
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.
its working? cat
just prints the file?
from gh-action-bump-version.
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?
from gh-action-bump-version.
Related Issues (20)
- Support for tag suffixes HOT 2
- default: prerelease and preid not working HOT 2
- Execution in a context of a release tries to push to a tag instead of a branch
- PR Title no longer used? HOT 1
- How to get trigger GH workflows from Automated Version Bump HOT 1
- Git error error when running the action HOT 2
- Issue with simultaneous Pull Requests HOT 1
- Couldn't find any commits in this event [...] HOT 7
- 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
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.