Skip to content

Commit d89aec7

Browse files
authored
chore: update to ghauth v7, modernise CI (#192)
1 parent 31d310e commit d89aec7

4 files changed

Lines changed: 17 additions & 22 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
version: 2
2+
cooldown:
3+
default-days: 5
24
updates:
35
- package-ecosystem: 'github-actions'
46
directory: '/'

.github/workflows/test-and-release.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
strategy:
66
fail-fast: false
77
matrix:
8-
node: [18.x, 20.x, lts/*, current]
8+
node: [lts/*, current]
99
# not quite windows ready, halp! os: [macos-latest, ubuntu-latest, windows-latest]
1010
os: [macos-latest, ubuntu-latest]
1111
runs-on: ${{ matrix.os }}
@@ -62,22 +62,9 @@ jobs:
6262
node-version: lts/*
6363
registry-url: 'https://registry.npmjs.org'
6464
- name: Install dependencies
65-
run: |
66-
npm install --no-progress --no-package-lock --no-save
65+
run: npm install --no-progress
6766
- name: Build
68-
run: |
69-
npm run build
70-
- name: Install plugins
71-
run: |
72-
npm install \
73-
@semantic-release/commit-analyzer \
74-
conventional-changelog-conventionalcommits \
75-
@semantic-release/release-notes-generator \
76-
@semantic-release/npm \
77-
@semantic-release/github \
78-
@semantic-release/git \
79-
@semantic-release/changelog \
80-
--no-progress --no-package-lock --no-save
67+
run: npm run build
8168
- name: Release
8269
env:
8370
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

auth.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import { promisify } from 'util'
21
import ghauth from 'ghauth'
32

43
const authOptions = {
54
configName: 'changelog-maker',
6-
scopes: ['repo'],
7-
noDeviceFlow: true
5+
scopes: ['repo']
86
}
97

108
export async function auth () {
11-
return await promisify(ghauth)(authOptions)
9+
return await ghauth(authOptions)
1210
}

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"chalk": "^5.3.0",
3131
"commit-stream": "^2.2.0",
3232
"debug": "^4.3.4",
33-
"ghauth": "^6.0.0",
33+
"ghauth": "^7.0.0",
3434
"ghissues": "^1.1.4",
3535
"gitexec": "^2.0.1",
3636
"minimist": "^1.2.8",
@@ -43,12 +43,20 @@
4343
"unified": "^11.0.3"
4444
},
4545
"devDependencies": {
46+
"@semantic-release/changelog": "^6.0.3",
47+
"@semantic-release/commit-analyzer": "^13.0.0",
48+
"@semantic-release/git": "^10.0.1",
49+
"@semantic-release/github": "^12.0.0",
50+
"@semantic-release/npm": "^13.0.0",
51+
"@semantic-release/release-notes-generator": "^14.0.1",
52+
"conventional-changelog-conventionalcommits": "^9.0.0",
53+
"semantic-release": "^25.0.0",
4654
"standard": "^17.1.0",
4755
"tap": "^21.0.1"
4856
},
4957
"scripts": {
5058
"lint": "standard",
51-
"unit": "tap --allow-incomplete-coverage",
59+
"unit": "tap --disable-coverage",
5260
"build": "true",
5361
"test:ci": "npm run test",
5462
"test": "npm run lint && npm run unit"

0 commit comments

Comments
 (0)