Skip to content

Commit aefdfb5

Browse files
committed
fix(@maz-ui/changelogen-monorepo): config should not override tokens
1 parent 8a4bcd8 commit aefdfb5

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/changelogen-monorepo/src/commands/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function github(options: Partial<GitProviderOptions> = {}): Promise
2828
logger.debug(`Commit range: ${config.from}...${config.to}`)
2929
logger.debug(`GitHub token: ${config.tokens.github ? '✓ provided' : '✗ missing'}`)
3030

31-
if (!config.tokens.github && !dryRun) {
31+
if (!config.tokens.github) {
3232
throw new Error('No GitHub token specified. Set GITHUB_TOKEN or GH_TOKEN environment variable.')
3333
}
3434

packages/changelogen-monorepo/src/core/config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,13 @@ async function mergeConfig({ config, overrides, logLevel }: {
9999
...config.repo,
100100
} satisfies RepoConfig
101101

102-
const tokens = {
103-
...config.tokens,
104-
...overrides?.tokens,
105-
}
106-
107102
return {
108103
...config,
109104
from: overrides?.from || config.from,
110105
to: overrides?.to || config.to,
111106
logLevel: overrides?.logLevel || config.logLevel,
112107
cwd: overrides?.cwd || config.cwd,
113108
repo,
114-
tokens,
115109
monorepo,
116110
bump,
117111
changelog,

0 commit comments

Comments
 (0)