Skip to content

Workflow builds failing due to missing Node.js #1026

Description

@daverosoff

Since updating to 2.23.0, I am not able to pass the automated build tests when pushing.

Expected behavior: node is installed in the pretext-cli workflow and my CSS/Prefigure compiles
Actual behavior: many errors due to missing node

I'd be happy to take a crack at this and submit a PR if such contribution is welcome.

Activity

  1. oscarlevin commented on Jul 12, 2025

    @oscarlevin
    Member

    It would be great if you could try to figure this out.

    This is because the new dynamic substitutions require mode 22.10 or higher. I have tried to install this in the docker image, but it's not working for CI builds (I think I did get it working for dev containers).

    One approach would be to add a node activate step in the action. Look at the test action for the CLI; that seems to work.

  2. bnmnetp commented on Jul 12, 2025

    @bnmnetp
    Contributor

    @oscarlevin I'm not sure what approach you are taking for installing node 22. This is what I have in my Dockerfile for the author server:

    RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
    RUN apt-get install -y nodejs
    

    It has been working reliably for me for quite a while.

  3. oscarlevin commented on Jul 12, 2025

    @oscarlevin
    Member

    @bnmnetp, that looks cool. I was trying to use NVM which was a pain for CI (and the nodejs that comes with debian is out of date)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions