Skip to content

Commit

Permalink
Read file
Browse files Browse the repository at this point in the history
  • Loading branch information
javierm committed Oct 9, 2023
1 parent ac051b1 commit 1ddafba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion roles/nodejs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
chdir: "{{ home_dir }}"
executable: /bin/bash

- name: Read Node.js version
shell: "cat .node-version"
args:
chdir: "{{ release_dir }}"
register: node_version

- name: Install nodejs via fnm
shell:
cmd: |
eval "$(fnm env)"
fnm use --install-if-missing
fnm install {{ node_version.stdout }}
chdir: "{{ release_dir }}"
executable: /bin/bash
environment:
Expand Down

0 comments on commit 1ddafba

Please sign in to comment.