-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept a working-directory as an input argument #282
Comments
I have a similar problem. My monorepo has the following structure:
Is there a possibility of using I've tried following workflow:
With similar error:
|
Hey Folks, I was playing around with this myself and I was able to get it to work by changing from v2 to v1. My steps section now looks like this. if you use v1 instead of v2 you should only need to get rid of "cache"
|
Thank you @dbaker-aa. Changing |
Hi @dbaker-aa , thank you for that note. However, I'm not going back. Software entities are supposed to move forward and add features, not remove them. This feature should exist in this action to become a more mature action. |
I think this was already requested in #275., so this might be a duplicate Not a contributor though, was just browsing the repo 😄 |
I had the same problem, but I didn't have to downgrade to v1 - just removing
|
Hello everyone! This feature request will be implemented soon. I have a small ADR under review #299 . |
Many actions support the "working-directory" input now, and it's even suggested on the GitHub docs to use this parameter: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#defaultsrun Would it please be possible to support "working-directory" input for this action to be consistent? |
actions/setup-node@v3.3.0 doesn't support using working-directory. Related Issue: actions/setup-node#282
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.29.3 to 4.30.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
I'm trying to setup node for my GitHub Action. But I'm not working in the default directory.
I clone a repo in
dir_one/rep_one
and then clone another repo indir_two/rep_two
and copy a couple of files from the first repo to the second repo.Then I want to setup Node and
npm install
on the second repo.working-directory
doesn't work withuses
and I also tried to- run: cd dir_two/repo_two
, but again build fails because it's running in its folder.I receive this error:
Please create an input argument to accept path where node should search for
package.json
file.The text was updated successfully, but these errors were encountered: