From 88d52aea334662c80cb3da3921ac857aa03933de Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Fri, 3 Feb 2023 18:43:11 -0800 Subject: [PATCH] try this --- .github/workflows/build.yml | 5 ++++- patches/@auto-it+core+10.37.6.patch | 31 ----------------------------- 2 files changed, 4 insertions(+), 32 deletions(-) delete mode 100644 patches/@auto-it+core+10.37.6.patch diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c795b0838..8c07a7dfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,7 +69,10 @@ jobs: - name: Prepare repository run: git fetch --unshallow --tags - name: Create Release - run: yarn auto shipit -vv + run: | + git remote rm origin + git remote add origin https://$GH_TOKEN@github.com/jimp-dev/jimp + yarn auto shipit -vv env: GH_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/patches/@auto-it+core+10.37.6.patch b/patches/@auto-it+core+10.37.6.patch deleted file mode 100644 index fa4acdffb..000000000 --- a/patches/@auto-it+core+10.37.6.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/node_modules/@auto-it/core/dist/auto.js b/node_modules/@auto-it/core/dist/auto.js -index b388374..75ef459 100644 ---- a/node_modules/@auto-it/core/dist/auto.js -+++ b/node_modules/@auto-it/core/dist/auto.js -@@ -316,7 +316,7 @@ class Auto { - : undefined, - }; - const envVar = Object.keys(GIT_TOKENS).find((v) => process.env[v]) || ""; -- const gitCredentials = GIT_TOKENS[envVar] || process.env.GH_TOKEN; -+ const gitCredentials = process.env.GH_TOKEN || GIT_TOKENS[envVar]; - if (ssh_url && (await this.git.verifyAuth(ssh_url))) { - this.logger.veryVerbose.note("Using ssh URL as remote"); - return ssh_url; -@@ -324,6 +324,8 @@ class Auto { - if (gitCredentials) { - const _a = url_1.parse(html_url), { port, hostname } = _a, parsed = tslib_1.__rest(_a, ["port", "hostname"]); - const urlWithAuth = url_1.format(Object.assign(Object.assign({}, parsed), { auth: gitCredentials, host: `${hostname}${port ? `:${port}` : ""}` })); -+ -+ console.log(process.env, urlWithAuth.replace(gitCredentials,'gitCredentials')) - if (await this.git.verifyAuth(urlWithAuth)) { - this.logger.veryVerbose.note("Using token + html URL as remote"); - return urlWithAuth; -@@ -333,7 +335,7 @@ class Auto { - this.logger.veryVerbose.note("Using bare html URL as remote"); - return html_url; - } -- this.logger.veryVerbose.note("Using remote set in environment"); -+ this.logger.veryVerbose.note("Using remote set in environment!!!!!"); - return configuredRemote; - } - /** Interactive prompt for initializing an .autorc */