Skip to content

Commit

Permalink
Auth before adding remote
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Oct 3, 2023
1 parent 80ce4ca commit 3655fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish-action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const publishAction = async ({ context, newVersion, repo }) => {
await run('git init -b main');
await run('git config --global user.name "Chromatic"');
await run('git config --global user.email "support@chromatic.com"');
await run(`git remote add origin "git@github.com:${repo}.git"`);
await run(`echo "${process.env.GH_TOKEN}" | gh auth login --with-token`);
await run('gh auth status');
await run(`git remote add origin "git@github.com:${repo}.git"`);
await run('git add .');
await run(`git commit -m "${newVersion}"`);
await run('git tag v1');
Expand Down

0 comments on commit 3655fb2

Please sign in to comment.