Skip to content

Commit 589b02e

Browse files
feat: allow api key to be used for any gemHost
1 parent f254976 commit 589b02e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = async function publish(
88
) {
99
if (gemPublish !== false) {
1010
logger.log(`Publishing version ${version} to gem server`);
11-
const args = ['push', gemFile, '--config-file', credentialsFile];
11+
const args = ['push', gemFile, '--config-file', credentialsFile, '--key', 'api_key'];
1212
if (gemHost) {
1313
args.push('--host', gemHost);
1414
}

src/verifyConditions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ You can retrieve an API key either from your \`~/.gem/credentials\` file or in y
100100

101101
await writeFile(
102102
credentialsFile,
103-
// TODO: Handle other hosts
104-
`---\n:rubygems_api_key: ${env.GEM_HOST_API_KEY}`,
103+
`---\n:api_key: ${env.GEM_HOST_API_KEY}`,
105104
'utf8',
106105
);
107106
};

0 commit comments

Comments
 (0)