Compare commits

..

2 Commits

Author SHA1 Message Date
e434342e4e download from node-versions and fallback to node dist (#147)
* download LTS versions from releases

* support upcoiming ghes 

Co-authored-by: eric sciple <ericsciple@users.noreply.github.com>
2020-05-19 09:25:54 -04:00
7c6182c745 Update README.md 2020-05-06 09:58:52 -04:00
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,8 @@
This action sets by node environment for use in actions by:
- optionally downloading and caching a version of node - npm by version spec and add to PATH
- registering problem matchers for error output
- registering problem matchers for error output
- configuring authentication for GPR or npm
# Usage
@ -19,7 +20,7 @@ steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '12'
- run: npm install
- run: npm test
```

3
dist/index.js vendored
View File

@ -10943,7 +10943,7 @@ function downloadTool(url, dest, auth) {
}
}
// Otherwise retry
return false;
return true;
});
});
}
@ -10965,7 +10965,6 @@ function downloadToolAttempt(url, dest, auth) {
};
}
const response = yield http.get(url, headers);
throw new HTTPError(500);
if (response.message.statusCode !== 200) {
const err = new HTTPError(response.message.statusCode);
core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);