Skip to content

Commit 82bcb79

Browse files
authored
feat(script): bump setup-node to v2 if it is using v1 originally (#3)
1 parent f08d2b8 commit 82bcb79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ export async function script(octokit, repository, { cache = "npm" }) {
8686
stepWith.set("cache", cache);
8787
}
8888

89+
if (stepUses === "actions/setup-node@v1") {
90+
step.set("uses", "actions/setup-node@v2");
91+
}
92+
8993
cacheAdded = true;
9094
}
9195
}

0 commit comments

Comments
 (0)