Skip to content

Commit

Permalink
Add newer versions and bump default version to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Nov 7, 2024
1 parent f4059fa commit 8593b11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Set up the latest version of [Node.js](https://nodejs.org) and [npm](https://www

#### Variables

* `nodejs_version` [default: `nodejs-v12x`]: Version to install (e.g. `nodejs-v17x`, `nodejs-v16x`, `nodejs-v15x`, `nodejs-v14x`, `nodejs-v13x`, `nodejs-v12x`, `nodejs-v10x`, `nodejs-v8x`, `nodejs-v7x`, `nodejs-v6x`, `nodejs-v5x`, `nodejs-v012`, `nodejs-v010`, `iojs-v3x`, `iojs-v2x`, `iojs-v1x`, or a specific version, e.g. `12.18.1`)
* `nodejs_install` [default: `[build-essential]`]: Packages to install
* `nodejs_version` [default: `nodejs-v16x`]: Version to install (e.g. `nodejs-v23x`, ..., `nodejs-v010`, `iojs-v3x`, `iojs-v2x`, `iojs-v1x`, or a specific version, e.g. `12.18.1`)
* `nodejs_install` [default: `['build-essential']`]: Packages to install
* `nodejs_npm_packages`: [default: `[]`]: Node.js packages to install (globally)
* `nodejs_npm_packages.{n}.name`: [required]: The name of the package
* `nodejs_npm_packages.{n}.version`: [optional]: The version of the package
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# defaults file
---
nodejs_version: 'nodejs-v12x'
nodejs_version: 'nodejs-v16x'

nodejs_install:
# To compile and install native addons from npm you may also need to install build tools
Expand Down
6 changes: 6 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# vars file
---
nodejs_version_map:
nodejs-v23x: '23.x'
nodejs-v22x: '22.x'
nodejs-v21x: '21.x'
nodejs-v20x: '20.x'
nodejs-v19x: '19.x'
nodejs-v18x: '18.x'
nodejs-v17x: '17.x'
nodejs-v16x: '16.x'
nodejs-v15x: '15.x'
Expand Down

0 comments on commit 8593b11

Please sign in to comment.