-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
248 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Setup Node.js | ||
description: Setup Node.js and install dependencies. | ||
|
||
inputs: | ||
node_version: | ||
description: The Node.js version. | ||
required: false | ||
default: '20' | ||
registry_url: | ||
description: The Node.js package registry URL. | ||
required: false | ||
default: https://registry.npmjs.org | ||
install_dependencies: | ||
description: Install dependencies. | ||
required: false | ||
default: 'true' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
if: inputs.install_dependencies == 'true' | ||
with: | ||
cache: npm | ||
node-version: ${{ inputs.node_version }} | ||
registry-url: ${{ inputs.registry_url }} | ||
- name: Setup Node.js without cache | ||
uses: actions/setup-node@v4 | ||
if: inputs.install_dependencies == 'false' | ||
with: | ||
node-version: ${{ inputs.node_version }} | ||
registry-url: ${{ inputs.registry_url }} | ||
- name: Install dependencies | ||
if: inputs.install_dependencies == 'true' | ||
shell: bash | ||
run: npm ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"jsxSingleQuote": true, | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,13 +64,14 @@ $ git clone [email protected]:seamapi/ruby-next.git | |
|
||
### Requirements | ||
|
||
You will need [Ruby] with [Bundler]. | ||
You will need [Ruby] with [Bundler] and [Node.js] with [npm]. | ||
|
||
Be sure that all commands run under the correct Ruby version, e.g., | ||
if using [rbenv], install the correct version with | ||
|
||
``` | ||
$ rbenv install | ||
$ npm install | ||
``` | ||
|
||
Install the development dependencies with | ||
|
@@ -80,6 +81,8 @@ $ bundle install | |
``` | ||
|
||
[bundler]: https://bundler.io/ | ||
[Node.js]: https://nodejs.org/ | ||
[npm]: https://www.npmjs.com/ | ||
[ruby]: https://www.ruby-lang.org/ | ||
[rbenv]: https://github.com/rbenv/rbenv | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "@seamapi/ruby", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"format": "prettier --write --ignore-path .gitignore ." | ||
}, | ||
"devDependencies": { | ||
"prettier": "^3.2.5" | ||
} | ||
} |