Closed DavidUnzue closed 3 years ago
There is a chance the jekyll-action is executed in a different environment than the rest of the job, so node might not be in the path.
That's the best thing I can think of. I might suggest going to the GitHub actions support rather than asking here for more help.
Hey @mhanberg thank you for the fast reaction. I found out that helaili/jekyll-action doesn't provide a Node or Javascript runtime, as you guessed. I then tried with limjh16/jekyll-action-ts . After doing that, the error regarding the Node environment dissapeared. However, the build still fails as soon as PostCSS sets in, now with following error:
Conversion error: Jekyll::Converters::PostCss encountered an error while converting 'css/styles.css':
PostCssNotFoundError
The output comes from:
vendor/bundle/ruby/2.7.0/gems/jekyll-postcss-0.4.0/lib/jekyll/converters/postcss.rb:30:in `convert': PostCssNotFoundError (PostCssNotFoundError)
jekyll-postcss is definitly listed in the Gemfile.
Do you have any suggestion?
You still need to install postcss with npm or yarn.
This plugin doesn't vendor it.
Yes, you are right! I was thinking that limjh16/jekyll-action-ts would install the dependencies by itself.
I also realized that I was missing a couple of npm dependencies, which were installed locally but not in the package.json
...
Now everything is working! Thank you!
Yes, you are right! I was thinking that limjh16/jekyll-action-ts would install the dependencies by itself.
I also realized that I was missing a couple of npm dependencies, which were installed locally but not in the
package.json
...Now everything is working! Thank you!
What npm dependencies were you missing exactly? I am having the same setup, but even with all npm packackes in packages.json I can think of, postcss is still not found. I also use the same action, but i added actions/setup-node to install npm packages manually
Hi there,
did anyone get this working with deployments to Github-Pages using Github-Actions? More specifically using helaili/jekyll-action.
I'm getting an error as soon as the postCSS part sets in. here it is:
I checked my syntax and everything is fine, no errors there. Also, everything is working fine locally when I build the site using:
I'm using jekyll-postcss just to load in TailwindCSS with a couple of postCSS plugins. Nothing fancy.
Here is my PostCSS config:
Here the Tailwind config:
And my CSS styles:
I tried different variations of the Github action:
The standard way from jekyll-action's docs:
And a extended version to make sure Ruby and Node.js are installed and setup:
Note: helaili/jekyll-action will set
JEKYLL_ENV
toproduction
by default.I'm note sure why the line
keeps appearing even after explicitly setting up node in the pipeline. I don't know if that might be the reason for the pipeline to fail or if it is related to jekyll-postcss not parsing correctly.
Any idea?
Thanks in advance ✌️