Comments (6)
It seems like the issue is with a GitHub action that tries to run node
or yarn
that is itself not configured with Volta is not able to "look up" the correct node
/yarn
version.
For example, I am trying to use percy/storybook-action
to invoke yarn
, and the command is not found
https://github.com/movableink/tailwind-config/pull/306/checks?check_run_id=1426621052
My guess is that the action finds the yarn
shim (installed by Volta) and tries to look up the right version to use, finds the Percy action's own package.json
without a Volta configuration, and then fails.
If that is a correct guess, the volta
shim installed by the volta-cli/action
would somehow need to know to fallback to the repository's package.json
configuration (or use that exclusively, instead of the file provided by the action itself).
from action.
Hmm. npx
definitely is something that works fine with volta (one of the earlier questions you had), but like you mentioned I don't think that is actually the real issue here.
One work around here is to use our configuration options to install a default node
/yarn
(but unfortunately that also pins your project due to the changes in #24). We could add a config option to allow specifying default node/yarn versions (which I think would be used in your case) and avoid pinning in the project. đ¤
from action.
Yeah, sorry for the false lead there at first -- I don't think npx
here is actually the issue.
I think for this, I can just replace with the Node action or pin a specific node/yarn version for this Percy action to use.
I'm going to close this for now, since I think the problem is kind of out-of-scope. I wonder what kind of fix we would need here. Maybe a way for the action to hard-code a directory to resolve the Node version from? It sounds complex/tricky/out-of-scope so no need to worry about it!
from action.
I couldn't get the Volta action to work even with pinning the node-version
so I ended up using setup-node
instead
movableink/tailwind-config#306
from action.
It's probably worth keeping this issue open, right? Because I stumbled across it and have the same issue. I'd like to keep using this volta action if possible, because otherwise I know that the version specified in setup-node
will fall out of sync!
from action.
I might agree @aidansteele -- I think the real question is whether this action should infer the version numbers for situations like this, or if it's just out-of-scope.
from action.
Related Issues (20)
- Using volta-cli/action on GitHub Enterprise Server causes frequent rate-limits with no fallback HOT 1
- Prepare for 1.1.0 Support
- Action fails to download `[email protected]` HOT 8
- Support pnpm cache
- Intermittent errors unpacking Node v18.18.2 HOT 1
- Installing executables with Volta HOT 2
- Failure in Github workflows on ec2-runners HOT 3
- Migrate to Node 20 HOT 1
- Node 20 HOT 1
- Github Requiring Node 20 HOT 1
- Support `npm-version` HOT 1
- Enhance documentation/ explain how it works HOT 13
- Frequent failures HOT 13
- Object prototype may only be an Object or null: undefined HOT 4
- Please release HOT 3
- Unexpected input(s) 'registry-url' HOT 1
- package.json in a subdirectory HOT 1
- Should be released with major `v2` tag HOT 2
- Unexpected input(s) 'scope' HOT 4
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 action.