diff --git a/package.json b/package.json index 414a9455..30ff56e2 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@types/node": "^13.1.2", "jest": "^25.1.0", "jest-circus": "^25.1.0", - "prettier": "^1.19.1", + "prettier": "^2.0.2", "ts-jest": "^25.0.0", "eslint": "^6.8.0", "eslint-plugin-github": "^3.4.1", diff --git a/src/constants.ts b/src/constants.ts index 57028b1b..9805480c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -65,8 +65,9 @@ export const action: ActionInterface = { ? getInput('GIT_CONFIG_EMAIL') : pusher && pusher.email ? pusher.email - : `${process.env.GITHUB_ACTOR || - 'github-pages-deploy-action'}@users.noreply.github.com`, + : `${ + process.env.GITHUB_ACTOR || 'github-pages-deploy-action' + }@users.noreply.github.com`, gitHubToken: getInput('GITHUB_TOKEN'), name: !isNullOrUndefined(getInput('GIT_CONFIG_NAME')) ? getInput('GIT_CONFIG_NAME') diff --git a/src/util.ts b/src/util.ts index fad21058..0c9f119b 100644 --- a/src/util.ts +++ b/src/util.ts @@ -19,10 +19,9 @@ export const generateTokenType = (action: ActionInterface): string => export const generateRepositoryPath = (action: ActionInterface): string => action.ssh ? `git@github.com:${action.repositoryName}` - : `https://${action.accessToken || - `x-access-token:${action.gitHubToken}`}@github.com/${ - action.repositoryName - }.git` + : `https://${ + action.accessToken || `x-access-token:${action.gitHubToken}` + }@github.com/${action.repositoryName}.git` /* Checks for the required tokens and formatting. Throws an error if any case is matched. */ export const hasRequiredParameters = (action: ActionInterface): void => { diff --git a/yarn.lock b/yarn.lock index faacb14e..dee68ce0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3283,9 +3283,9 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@>=1.12.0, prettier@^1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" +prettier@>=1.12.0, prettier@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08" pretty-format@^25.1.0: version "25.1.0"