Skip to content

Commit c43abdf

Browse files
fix: use auth.stdout, not .toString(), in setup (#389)
<!-- 👋 Hi, thanks for sending a PR to template-typescript-node-package! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [x] Addresses an existing open issue: fixes #388 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Missed in the `execa` conversion (#349), and not tested because it involves directly using the GitHub API.
1 parent afbfa93 commit c43abdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ try {
390390
await withSpinner(
391391
async () => {
392392
await $`gh auth status`;
393-
const auth = (await $`gh auth token`).toString().trim();
393+
const auth = (await $`gh auth token`).stdout.trim();
394394

395395
octokit = new Octokit({ auth });
396396
},

0 commit comments

Comments
 (0)