mirror of
https://gitea.com/actions/setup-node.git
synced 2025-08-14 15:55:57 +08:00
Compare commits
35 Commits
v2.0.0
...
users/eric
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1c0119c056 | ||
![]() |
095ab69cb7 | ||
![]() |
e7b5a7c545 | ||
![]() |
e37249e03d | ||
![]() |
2ae9264901 | ||
![]() |
2a0fbec10d | ||
![]() |
0a9e8b1d0f | ||
![]() |
a875da2574 | ||
![]() |
a80a170798 | ||
![]() |
5e7b076d00 | ||
![]() |
8e221092f3 | ||
![]() |
6a1b66a606 | ||
![]() |
9fcef3fcea | ||
![]() |
beb2155295 | ||
![]() |
11f920585c | ||
![]() |
dd6f5ab66c | ||
![]() |
f7c5caf605 | ||
![]() |
a4145577de | ||
![]() |
42746a4f3c | ||
![]() |
c8617ac6ae | ||
![]() |
1b2d431484 | ||
![]() |
5e5ef8fd55 | ||
![]() |
2fb08c4f31 | ||
![]() |
e3ad114cc4 | ||
![]() |
501fd29d66 | ||
![]() |
2bdb2ab1c9 | ||
![]() |
ed3a918d25 | ||
![]() |
efab84ad3c | ||
![]() |
8a1d983ace | ||
![]() |
22c0aea623 | ||
![]() |
1c2f59fb67 | ||
![]() |
ec6092f7d2 | ||
![]() |
889def385d | ||
![]() |
8885b7194e | ||
![]() |
ecf0ce62f9 |
@@ -7,8 +7,7 @@
|
||||
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
|
||||
- configuring authentication for GPR or npm
|
||||
- registering problem matchers for error output
|
||||
|
||||
# Usage
|
||||
|
||||
@@ -20,7 +19,7 @@ steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12'
|
||||
node-version: '10.x'
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
```
|
||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -10943,7 +10943,7 @@ function downloadTool(url, dest, auth) {
|
||||
}
|
||||
}
|
||||
// Otherwise retry
|
||||
return true;
|
||||
return false;
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -10965,6 +10965,7 @@ 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})`);
|
||||
|
Reference in New Issue
Block a user