Skip to content
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

Support asdf (.tool-versions) #70

Open
puku0x opened this issue Oct 3, 2024 · 0 comments
Open

Support asdf (.tool-versions) #70

puku0x opened this issue Oct 3, 2024 · 0 comments

Comments

@puku0x
Copy link

puku0x commented Oct 3, 2024

actions/setup-node supports an option node-version-file: '.tool-versions'.

Currently nrwl/nx-cloud-workflows/v4/workflow-steps/install-node/main.yaml supports nvm but it would be nice to have another option to support asdf .

# .tool-versions
nodejs 20.17.0
- name: Checkout
  uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/checkout/main.yaml'
- name: Setup Node.js
  script: |
    git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v0.14.1
    source $HOME/.asdf/asdf.sh
    asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
    asdf install nodejs
- name: Restore NPM Cache
  uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
  inputs:
    key: '.tool-versions'
    paths: ~/.npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant