Skip to content

Commit 523ec98

Browse files
authored
Use major version ref of actions/setup-node
The `actions/setup-node` action is used in the GitHub Actions workflows as a convenient way to install Node.js A major version ref has been added to that repository. It will always point to the latest release of the "3" major version series. This means it is not necessary to do a full pin of the action version in use as before. Use of the major version ref will cause the workflow to use a stable version of the action, while also benefiting from ongoing development to the action up until such time as a new major release of an action is made. At that time we would need to evaluate whether any changes to the workflow are required by the breaking change that triggered the major release before manually updating the major ref (e.g., uses: `actions@setup-nodev4`). I think this approach strikes the right balance between stability and maintainability for these workflows.
1 parent 019380b commit 523ec98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v3
1919

2020
- name: Set Node.js 10.x
21-
uses: actions/setup-node@v3.1.1
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: 10.x
2424

0 commit comments

Comments
 (0)