Skip to content

Commit 63820e0

Browse files
committed
Switch to new release mechanism.
1 parent 9f7de3d commit 63820e0

4 files changed

Lines changed: 911 additions & 2219 deletions

File tree

‎.github/workflows/publish.yaml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Publish to npm
2+
on:
3+
push:
4+
branches:
5+
- release
6+
7+
permissions:
8+
id-token: write
9+
contents: read
10+
11+
jobs:
12+
publish:
13+
uses: reviewable/actions/.github/workflows/publish.yaml@master

‎hubkit.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ if (typeof require !== 'undefined') {
206206
error.retryDelay =
207207
parseInt(res.headers['retry-after'].replace(/[^\d]*$/, ''), 10) * 1000;
208208
if (!options.timeout || error.retryDelay < options.timeout) value = Hubkit.RETRY;
209-
} catch (e) {
209+
} catch {
210210
// ignore, don't retry request
211211
}
212212
} else if (res && res.status === 403 &&
@@ -216,7 +216,7 @@ if (typeof require !== 'undefined') {
216216
error.retryDelay =
217217
Math.max(0, parseInt(res.headers['x-ratelimit-reset'], 10) * 1000 - Date.now());
218218
if (!options.timeout || error.retryDelay < options.timeout) value = Hubkit.RETRY;
219-
} catch (e) {
219+
} catch {
220220
// ignore, don't retry request
221221
}
222222
}

‎package.json‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"name": "hubkit",
3-
"version": "5.7.3",
3+
"version": "5.7.4",
44
"description": "GitHub API library for JavaScript, promise-based, for both NodeJS and the browser",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"scripts": {
8-
"test": "echo \"Error: no test specified\" && exit 1",
9-
"release": "release-it",
8+
"lint": "eslint *.js",
109
"update": "yarn upgrade-interactive --latest"
1110
},
1211
"repository": {
@@ -29,12 +28,11 @@
2928
},
3029
"packageManager": "yarn@1.22.22",
3130
"dependencies": {
32-
"axios": "^1.2.1",
31+
"axios": "^1.13.2",
3332
"lru-cache": "6.x"
3433
},
3534
"devDependencies": {
36-
"eslint": "^8.57.0",
37-
"release-it": "15.3.0",
35+
"eslint": "^9.39.1",
3836
"reviewable-configs": "Reviewable/reviewable-configs"
3937
}
4038
}

0 commit comments

Comments
 (0)