Release: 4.1.4 (#749)

* Docs

* Release 4.1.3 📣

* Bump @types/node from 15.0.2 to 15.0.3 (#716)

* Bump @types/node from 15.0.3 to 15.3.1 (#723)

* Bump @typescript-eslint/eslint-plugin from 4.23.0 to 4.24.0 (#721)

* Bump @typescript-eslint/parser from 4.23.0 to 4.25.0 (#730)

* Bump jest-circus from 26.6.3 to 27.0.0 (#729)

* Bump @types/node from 15.3.1 to 15.6.1 (#728)

* Bump @actions/core from 1.2.7 to 1.3.0 (#726)

* Bump @actions/github from 4.0.0 to 5.0.0 (#720)

* Bump @typescript-eslint/eslint-plugin from 4.24.0 to 4.25.0 (#727)

* Bump eslint from 7.26.0 to 7.27.0 (#724)

Bumps [eslint](https://github.com/eslint/eslint) from 7.26.0 to 7.27.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.26.0...v7.27.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump typescript from 4.2.4 to 4.3.2 (#733)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.4 to 4.3.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.4...v4.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jest-circus from 27.0.0 to 27.0.1 (#732)

Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 27.0.0 to 27.0.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v27.0.1/packages/jest-circus)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Deploying to dev from @ JamesIves/github-pages-deploy-action@38edd9eeb3 🚀

* Fix output size check (#744)

* Update README.md

* Bump @typescript-eslint/eslint-plugin from 4.25.0 to 4.26.0 (#739)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.25.0 to 4.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/parser from 4.25.0 to 4.26.0 (#740)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.25.0 to 4.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/parser)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jest-circus from 27.0.1 to 27.0.4 (#745)

Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 27.0.1 to 27.0.4.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v27.0.4/packages/jest-circus)

---
updated-dependencies:
- dependency-name: jest-circus
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/node from 15.6.1 to 15.12.0 (#747)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.6.1 to 15.12.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump prettier from 2.2.1 to 2.3.0 (#703)

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ws from 7.2.5 to 7.4.6 (#748)

Bumps [ws](https://github.com/websockets/ws) from 7.2.5 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.2.5...7.4.6)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Formatting fixes

* Assigning readme changes for 4.1.4

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JamesIves <JamesIves@users.noreply.github.com>
Co-authored-by: Lukas Larsson <garazdawi@gmail.com>
This commit is contained in:
James Ives 2021-06-04 10:18:26 -04:00 committed by GitHub
parent 93065a8b71
commit 0674e55573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1010 additions and 210 deletions

View File

@ -20,7 +20,7 @@ jobs:
minimum: 500
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.2
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: dev
folder: '.'

View File

@ -60,7 +60,7 @@ jobs:
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.2
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.
@ -178,7 +178,7 @@ With this configured you can then set the `ssh-key` part of the action to your p
```yml
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.2
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: site
@ -207,7 +207,7 @@ jobs:
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.2
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: build
@ -274,9 +274,8 @@ jobs:
name: site
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.2
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
token: ${{ secrets.ACCESS_TOKEN }}
branch: gh-pages
folder: 'site' # The deployment folder should match the name of the artifact. Even though our project builds into the 'build' folder the artifact name of 'site' must be placed here.
```
@ -296,7 +295,7 @@ If you use a [container](https://help.github.com/en/actions/automating-your-work
apt-get update && apt-get install -y rsync
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.2
uses: JamesIves/github-pages-deploy-action@4.1.4
```
---
@ -327,7 +326,7 @@ jobs:
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.2
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: build
@ -348,4 +347,4 @@ If you wish to remove these files you must go into the deployment branch directl
This project would not be possible without all of our fantastic [contributors](https://github.com/JamesIves/github-pages-deploy-action/graphs/contributors) and [sponsors](https://github.com/sponsors/JamesIves). If you'd like to support the maintenance and upkeep of this project you can [donate via GitHub Sponsors](https://github.com/sponsors/JamesIves).
<!-- sponsors --><!-- sponsors -->
<!-- sponsors --><a href="https://github.com/MattWillFlood"><img src="https://github.com/MattWillFlood.png" width="50px" alt="" /></a><!-- sponsors -->

View File

@ -2,7 +2,7 @@
"name": "@jamesives/github-pages-deploy-action",
"description": "GitHub action for building a project and deploying it to GitHub pages.",
"author": "James Ives <iam@jamesiv.es> (https://jamesiv.es)",
"version": "4.1.2",
"version": "4.1.3",
"license": "MIT",
"main": "lib/lib.js",
"types": "lib/lib.d.ts",
@ -33,25 +33,25 @@
"deployment"
],
"dependencies": {
"@actions/core": "1.2.7",
"@actions/core": "1.3.0",
"@actions/exec": "1.0.4",
"@actions/github": "4.0.0",
"@actions/github": "5.0.0",
"@actions/io": "1.1.0"
},
"devDependencies": {
"@types/jest": "26.0.23",
"@types/node": "15.0.2",
"@typescript-eslint/eslint-plugin": "4.23.0",
"@typescript-eslint/parser": "4.23.0",
"eslint": "7.26.0",
"@types/node": "15.12.0",
"@typescript-eslint/eslint-plugin": "4.26.0",
"@typescript-eslint/parser": "4.26.0",
"eslint": "7.27.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-jest": "24.3.6",
"eslint-plugin-prettier": "3.4.0",
"jest": "26.6.3",
"jest-circus": "26.6.3",
"prettier": "2.2.1",
"jest-circus": "27.0.4",
"prettier": "2.3.0",
"rimraf": "3.0.2",
"ts-jest": "26.5.6",
"typescript": "4.2.4"
"typescript": "4.3.2"
}
}

View File

@ -30,7 +30,8 @@ export async function execute(
}
export function stdout(data: Buffer | string): void {
if (output.length < buffer.constants.MAX_STRING_LENGTH) {
output += data.toString().trim()
const dataString = data.toString().trim()
if (output.length + dataString.length < buffer.constants.MAX_STRING_LENGTH) {
output += dataString
}
}

View File

@ -26,9 +26,8 @@ export async function configureSSH(action: ActionInterface): Promise<void> {
const agentOutput = execFileSync('ssh-agent').toString().split('\n')
agentOutput.map(line => {
const exportableVariables = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(
line
)
const exportableVariables =
/^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(line)
if (exportableVariables && exportableVariables.length) {
exportVariable(exportableVariables[1], exportableVariables[2])

View File

@ -79,9 +79,9 @@ export const suppressSensitiveInformation = (
return value
}
const orderedByLength = ([action.token, action.repositoryPath].filter(
Boolean
) as string[]).sort((a, b) => b.length - a.length)
const orderedByLength = (
[action.token, action.repositoryPath].filter(Boolean) as string[]
).sort((a, b) => b.length - a.length)
for (const find of orderedByLength) {
value = replaceAll(value, find, '***')

1167
yarn.lock

File diff suppressed because it is too large Load Diff