Skip to content

Commit 321b6cc

Browse files
Switch from "master" to "main" branch (#171)
* Switch from "master" to "main" branch * Update README.md
1 parent 1ae8f4b commit 321b6cc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ steps:
2222
node-version: '12'
2323
```
2424
25-
It will first check the local cache for a semver match. The hosted images have been updated with the latest of each LTS from v8, v10, v12, and v14. `self-hosted` machines will benefit from the cache as well only downloading once. It will pull LTS versions from [node-versions releases](https://github.com/actions/node-versions/releases) and on miss or failure, it will fall back to the previous behavior of download directly from [node dist](https://nodejs.org/dist/).
25+
It will first check the local cache for a semver match. The hosted images have been updated with the latest of each LTS from v8, v10, v12, and v14. `self-hosted` machines will benefit from the cache as well only downloading once. It will pull LTS versions from `main` branch of [node-versions](https://github.com/actions/node-versions/blob/main/versions-manifest.json) repository and on miss or failure, it will fall back to the previous behavior of download directly from [node dist](https://nodejs.org/dist/).
2626

2727
The `node-version` input is optional. If not supplied, node which is in your PATH will be used. However, this action will still register problem matchers and support auth features. So setting up the node environment is still a valid scenario without downloading and caching versions.
2828

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13110,7 +13110,7 @@ exports.getNode = getNode;
1311013110
function getInfoFromManifest(versionSpec, stable, auth) {
1311113111
return __awaiter(this, void 0, void 0, function* () {
1311213112
let info = null;
13113-
const releases = yield tc.getManifestFromRepo('actions', 'node-versions', auth);
13113+
const releases = yield tc.getManifestFromRepo('actions', 'node-versions', auth, 'main');
1311413114
const rel = yield tc.findFromManifest(versionSpec, stable, releases);
1311513115
if (rel && rel.files.length > 0) {
1311613116
info = {};

src/installer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ async function getInfoFromManifest(
164164
const releases = await tc.getManifestFromRepo(
165165
'actions',
166166
'node-versions',
167-
auth
167+
auth,
168+
'main'
168169
);
169170
const rel = await tc.findFromManifest(versionSpec, stable, releases);
170171

0 commit comments

Comments
 (0)