Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 523ec98

Browse filesBrowse 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
Copy full SHA for 523ec98

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎.github/workflows/test.yml

Copy file name to clipboardExpand all lines: .github/workflows/test.yml
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.