Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/reusables/actions/action-setup-node.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
actions/setup-node@v4
actions/setup-node@v7
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can create an example workflow in your repository that automatically trigger
- uses: {% data reusables.actions.action-checkout %}
- uses: {% data reusables.actions.action-setup-node %}
with:
node-version: '20'
node-version: '24'
- run: npm install -g bats
- run: bats -v
```
Expand Down Expand Up @@ -56,10 +56,10 @@ jobs:
# The `uses` keyword specifies that this step will run the `{% data reusables.actions.action-checkout %}` action. This is an action that checks out your repository onto the runner, allowing you to run scripts or other actions against your code (such as build and test tools). You should use the checkout action any time your workflow will use the repository's code.
- uses: {% data reusables.actions.action-checkout %}

# This step uses the `{% data reusables.actions.action-setup-node %}` action to install the specified version of the Node.js. (This example uses version 20.) This puts both the `node` and `npm` commands in your `PATH`.
# This step uses the `{% data reusables.actions.action-setup-node %}` action to install the specified version of the Node.js. (This example uses version 24.) This puts both the `node` and `npm` commands in your `PATH`.
- uses: {% data reusables.actions.action-setup-node %}
with:
node-version: '20'
node-version: '24'

# The `run` keyword tells the job to execute a command on the runner. In this case, you are using `npm` to install the `bats` software testing package.
- run: npm install -g bats
Expand Down
Loading