Compare commits

...

598 Commits

Author SHA1 Message Date
peaceiris
05a7c4edd9 chore(release): 3.7.0-8
Some checks failed
Release / release (push) Has been cancelled
2020-08-09 09:49:51 +09:00
peaceiris
4c2d9ecb85 chore(release): Add build assets 2020-08-09 09:49:50 +09:00
peaceiris
6b302fdd50 chore: Add vscode devcontainer 2020-08-09 09:49:07 +09:00
Shohei Ueda
f80024481c refactor: Enhance log (#444) 2020-08-09 09:48:27 +09:00
Shohei Ueda
ba912f746b ci: Add actions runner env (#443)
DEBIAN_FRONTEND="noninteractive"
ImageVersion="20200717.1"
GITHUB_SERVER_URL="https://github.com"
GITHUB_GRAPHQL_URL="https://api.github.com/graphql"
GITHUB_ACTOR="peaceiris"
GITHUB_REPOSITORY="actions/pages"
RUNNER_OS="Linux"
RUNNER_USER="runner"
RUNNER_TEMP="/home/runner/work/_temp"
RUNNER_WORKSPACE="/home/runner/work/pages"
2020-08-06 11:36:20 +09:00
dependabot[bot]
02db90c5c8 deps: bump @types/jest from 26.0.8 to 26.0.9 (#442)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.8 to 26.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-06 11:33:42 +09:00
dependabot[bot]
b5599b36fd deps: bump @types/node from 12.12.53 to 12.12.54 (#441)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.53 to 12.12.54.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-06 11:31:47 +09:00
dependabot[bot]
3f71ec211a deps: bump @types/jest from 26.0.7 to 26.0.8 (#439)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.7 to 26.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 16:29:29 +09:00
peaceiris
5bfcd3f213 chore(release): Remove build assets [skip ci] 2020-08-02 15:12:30 +09:00
peaceiris
3226514b95 chore(release): 3.7.0-7
Some checks failed
Release / release (push) Has been cancelled
2020-08-02 15:12:29 +09:00
peaceiris
4f4235c78c chore(release): Add build assets 2020-08-02 15:12:27 +09:00
Shohei Ueda
079d48367e feat: Add .nojekyll file by default for all branches (#438) 2020-08-02 15:11:20 +09:00
dependabot[bot]
4fb3d60161 deps: bump jest-circus from 26.1.0 to 26.2.2 (#435)
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 26.1.0 to 26.2.2.
- [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/v26.2.2/packages/jest-circus)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-01 00:19:30 +09:00
dependabot[bot]
0c8fc2d5e6 deps: bump eslint-plugin-jest from 23.19.0 to 23.20.0 (#432)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.19.0 to 23.20.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v23.19.0...v23.20.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-01 00:19:18 +09:00
Shohei Ueda
4bf31e4520 deps: Apply npm audit fix (#434)
* ci: fix npm audit step
2020-07-31 23:47:10 +09:00
Shohei Ueda
0794e07c99 deps: bump node from 12.18.2 to 12.18.3 (#431) 2020-07-28 23:41:56 +09:00
Shohei Ueda
2b5ce90dc9 ci: reuse NODE_VERSION in nodesource URL (#430) 2020-07-28 23:28:25 +09:00
Shohei Ueda
681dcab3fd ci: enhance version log (#429) 2020-07-28 22:00:59 +09:00
Shohei Ueda
70c0076457 ci: change base image from Debian to Ubuntu 18.04 (#428)
Change base docker image from `node:x.x.x-buster-slim` to `ubuntu:18.04`
The image size reduces from 1.05GB to 327MB

- Install Node.js via nodesource https://github.com/nodesource/distributions
- Install Git via ppa:git-core/ppa https://git-scm.com/download/linux
2020-07-28 21:47:35 +09:00
Shohei Ueda
a49e738c32 ci: Add npm audit (#426) 2020-07-28 18:59:51 +09:00
Shohei Ueda
5d053d30d0 ci: Clean up apt cache and junk (#425) 2020-07-28 18:59:09 +09:00
Shohei Ueda
4cf5105929 ci: Set default branch to main (#424)
git config --global init.defaultBranch main

https://github.blog/2020-07-27-highlights-from-git-2-28/
2020-07-28 17:35:58 +09:00
dependabot[bot]
2392f69e4d deps: bump eslint-plugin-jest from 23.18.2 to 23.19.0 (#423)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.18.2 to 23.19.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v23.18.2...v23.19.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-28 11:27:02 +09:00
Shohei Ueda
fecb564860 deps: bump git from 2.27.0 to 2.28.0 (#422) 2020-07-28 02:20:19 +09:00
dependabot[bot]
7259f5ccc2 deps: bump eslint-plugin-jest from 23.18.0 to 23.18.2 (#420)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.18.0 to 23.18.2.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v23.18.0...v23.18.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-27 15:19:43 +09:00
dependabot[bot]
c8397307b4 deps: bump @types/node from 12.12.52 to 12.12.53 (#421)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.52 to 12.12.53.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-27 15:17:57 +09:00
peaceiris
7dd962e52e docs: Add exclude_assets section 2020-07-26 00:32:49 +09:00
peaceiris
ded3953565 docs: bump hugo from 0.74.2 to 0.74.3 2020-07-26 00:19:04 +09:00
Shohei Ueda
71958c534b ci: add env (#419)
ENV LANG="C.UTF-8"
ENV ImageVersion="20200625.0"
ENV GITHUB_API_URL="https://api.github.com"
ENV RUNNER_TOOL_CACHE="/opt/hostedtoolcache"
ENV GITHUB_REPOSITORY_OWNER="peaceiris"
ENV GITHUB_ACTIONS="true"
2020-07-26 00:12:46 +09:00
Shohei Ueda
eca3d9d25e ci: set env CI to true (#418) 2020-07-26 00:03:59 +09:00
Shohei Ueda
24d40fe124 ci: add workflow_dispatch and schedule 2020-07-25 23:59:01 +09:00
peaceiris
19b0b66a7c chore(release): Remove build assets [skip ci] 2020-07-25 21:55:02 +09:00
peaceiris
23abc3124a chore(release): 3.7.0-6
Some checks failed
Release / release (push) Has been cancelled
2020-07-25 21:55:01 +09:00
peaceiris
866d7e715c chore(release): Add build assets 2020-07-25 21:55:00 +09:00
Shohei Ueda
6f45501409 feat: exclude_assets supports glob patterns (#417)
Related to #163

https://github.com/actions/toolkit/tree/main/packages/glob
2020-07-25 21:54:06 +09:00
peaceiris
bf46251210 chore(release): Remove build assets [skip ci] 2020-07-25 20:53:29 +09:00
peaceiris
f8993157cb chore(release): 3.7.0-5
Some checks failed
Release / release (push) Has been cancelled
2020-07-25 20:53:29 +09:00
peaceiris
9cf67ec63b chore(release): Add build assets 2020-07-25 20:53:27 +09:00
Shohei Ueda
0f5c65e140 feat: Add exclude_assets option (#416)
Related to #163
2020-07-25 20:52:35 +09:00
peaceiris
2046290e2b chore(release): Remove build assets [skip ci] 2020-07-25 19:37:28 +09:00
peaceiris
600bb6caa2 chore(release): 3.7.0-4
Some checks failed
Release / release (push) Has been cancelled
2020-07-25 19:37:27 +09:00
peaceiris
20912713da chore(release): Add build assets 2020-07-25 19:37:25 +09:00
Andreas Linde
674c2318ce fix: copyAssets() for destination_dir (#414) 2020-07-25 19:36:43 +09:00
peaceiris
0b4686e3a6 chore(release): Remove build assets [skip ci] 2020-07-24 21:33:54 +09:00
peaceiris
1029512144 chore(release): 3.7.0-3
Some checks failed
Release / release (push) Has been cancelled
2020-07-24 21:33:53 +09:00
peaceiris
6c430d988e chore(release): Add build assets 2020-07-24 21:33:51 +09:00
Shohei Ueda
6f6bb2661a fix: set full path of publishing assets (#413)
https://github.com/peaceiris/actions-gh-pages/issues/410#issuecomment-663507581
2020-07-24 21:33:08 +09:00
dependabot[bot]
d1700b5653 deps: bump @types/jest from 26.0.5 to 26.0.7 (#411)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.5 to 26.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-24 11:37:53 +09:00
dependabot[bot]
1b5d710b24 deps: bump @types/node from 12.12.51 to 12.12.52 (#412)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.51 to 12.12.52.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-24 11:37:39 +09:00
peaceiris
3667febec5 refactor: change message type from warning to info 2020-07-24 00:49:02 +09:00
peaceiris
8546b0c56b chore(release): Remove build assets [skip ci] 2020-07-24 00:42:18 +09:00
peaceiris
2c04f23922 chore(release): 3.7.0-2
Some checks failed
Release / release (push) Has been cancelled
2020-07-24 00:42:17 +09:00
peaceiris
b15488f0b3 chore(release): Add build assets 2020-07-24 00:42:15 +09:00
peaceiris
612f1f7579 fix: chdir to workDir after copied assets
Related to #324
2020-07-24 00:40:01 +09:00
dependabot[bot]
af7aac1007 ci: bump codecov/codecov-action from v1.0.11 to v1.0.12 (#409)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.11 to v1.0.12.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.11...07127fde53bc3ccd346d47ab2f14c390161ad108)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-23 14:28:01 +09:00
peaceiris
6896bd8b80 docs: change default-branch to main 2020-07-23 12:17:19 +09:00
Shohei Ueda
ad558aa8bd docs: bump hugo from 0.71.1 to 0.74.2 2020-07-23 12:12:27 +09:00
Shohei Ueda
5051105279 docs: change master branch to default-branch (#408) 2020-07-23 12:10:40 +09:00
Shohei Ueda
99a89f661a docs: Add Code Scanning workflow badge 2020-07-23 11:22:23 +09:00
dependabot[bot]
8cd820bd66 ci: bump actions/setup-node from v2.1.0 to v2.1.1 (#407)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.0 to v2.1.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.0...321b6ccb03083caa2ad22b27dc4b45335212e824)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-22 14:42:08 +09:00
Shohei Ueda
f633b0f6b5 ci: remove types [skip ci] 2020-07-21 19:44:14 +09:00
Shohei Ueda
a2712f7b92 ci: Add docker-compose.yml (#406) 2020-07-21 19:37:23 +09:00
peaceiris
09b03c0bb1 chore(release): Remove build assets [skip ci] 2020-07-21 12:53:50 +09:00
peaceiris
afee929f89 chore(release): 3.7.0-1
Some checks failed
Release / release (push) Has been cancelled
2020-07-21 12:53:50 +09:00
peaceiris
4b17904d54 chore(release): Add build assets 2020-07-21 12:53:48 +09:00
Shohei Ueda
ce4e3beff1 fix: KeepFiles behaviour when DestinationDir has dir (#405)
Related to #324
2020-07-21 12:53:14 +09:00
peaceiris
3874723ac6 docs: Enhance section name 2020-07-21 11:42:39 +09:00
peaceiris
f0c76f03b6 chore(release): Remove build assets [skip ci] 2020-07-21 11:17:05 +09:00
peaceiris
b7f7b0dddb chore(release): 3.7.0-0
Some checks failed
Release / release (push) Has been cancelled
2020-07-21 11:17:04 +09:00
peaceiris
14e12e8e74 chore(release): Add build assets 2020-07-21 11:17:03 +09:00
Shohei Ueda
f30118c78e feat: Add destination_dir option (#403)
Related to #324 #390
2020-07-21 11:15:53 +09:00
dependabot[bot]
0cb61e91a5 deps: bump @types/node from 12.12.50 to 12.12.51 (#404)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.50 to 12.12.51.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-21 11:14:49 +09:00
dependabot[bot]
42a6cdde0c deps: bump @types/jest from 26.0.4 to 26.0.5 (#402)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.4 to 26.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-20 11:12:36 +09:00
Shohei Ueda
250469649c docs: update dependabot label 2020-07-18 16:25:09 +09:00
dependabot[bot]
a5a8912d3e ci: bump codecov/codecov-action from v1.0.10 to v1.0.11 (#401)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.10 to v1.0.11.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.10...6d208f5b527841fb050f92f778e86cb808dacdcb)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-18 16:18:20 +09:00
Shohei Ueda
5980f05de8 ci: update label 2020-07-18 16:18:08 +09:00
peaceiris
106f76b593 chore(release): Remove build assets [skip ci] 2020-07-18 13:02:37 +09:00
peaceiris
8a36f3edfc chore(release): 3.6.4
Some checks failed
Release / release (push) Has been cancelled
2020-07-18 13:02:36 +09:00
peaceiris
220a06da5e chore(release): Add build assets 2020-07-18 13:02:34 +09:00
favonia
e193524bff feat: Allow absolute path for publish_dir (#400)
Close #242
2020-07-18 12:55:50 +09:00
dependabot[bot]
7e92312ae4 deps: bump typescript from 3.9.6 to 3.9.7 (#399)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.6 to 3.9.7.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.6...v3.9.7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 11:19:32 +09:00
Shohei Ueda
3d656402e5 feat: enhance error message (#398) 2020-07-15 02:04:43 +09:00
Shohei Ueda
6901b8e8fc docs: change default branch from master to main (#397) 2020-07-15 01:41:09 +09:00
Shohei Ueda
932df18147 chore: change default branch from master to main (#396) 2020-07-14 12:45:04 +09:00
dependabot[bot]
c935046a93 deps: bump standard-version from 8.0.1 to 8.0.2 (#395)
Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/conventional-changelog/standard-version/releases)
- [Changelog](https://github.com/conventional-changelog/standard-version/blob/master/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/standard-version/compare/v8.0.1...v8.0.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-14 11:18:14 +09:00
peaceiris
ed8dfeaf86 chore(release): Remove build assets [skip ci] 2020-07-14 09:06:36 +09:00
peaceiris
381bc0b884 "chore(release): 3.6.3"
Some checks failed
Release / release (push) Has been cancelled
2020-07-14 09:06:36 +09:00
peaceiris
3914720f25 chore(release): Add build assets 2020-07-14 09:06:34 +09:00
Zach
f53ab0c2a5 fix: isProhibitedBranch detection (#394)
Co-authored-by: peaceiris <30958501+peaceiris@users.noreply.github.com>
2020-07-14 09:05:55 +09:00
dependabot[bot]
6b76e36ab3 deps: bump standard-version from 8.0.0 to 8.0.1 (#391)
Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/conventional-changelog/standard-version/releases)
- [Changelog](https://github.com/conventional-changelog/standard-version/blob/master/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/standard-version/compare/v8.0.0...v8.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-13 15:04:17 +09:00
dependabot[bot]
a4205cbdd8 deps: bump @types/node from 12.12.48 to 12.12.50 (#392)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.48 to 12.12.50.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-13 15:03:42 +09:00
ThunderMiracle
d753ac9b7d docs: pin actions/setup-node from v2 to v2.1.0 (#389)
Close #388
2020-07-10 18:02:08 +09:00
Shohei Ueda
488b74cc9f docs: add notes #349 (#387) 2020-07-10 12:05:25 +09:00
Shohei Ueda
16d58bea33 docs: Add Schedule and Manual Deployment (#386)
[Events that trigger workflows - GitHub Docs](https://docs.github.com/en/actions/reference/events-that-trigger-workflows)

- on.schedule
- on.workflow_dispatch
2020-07-10 12:00:35 +09:00
Shohei Ueda
a8941b89c6 docs: Add dependabot.yml example (#385)
[Keeping your dependencies updated automatically - GitHub Docs](https://docs.github.com/en/github/administering-a-repository/keeping-your-dependencies-updated-automatically)
2020-07-10 11:41:10 +09:00
peaceiris
0413b987d2 chore(release): Remove build assets [skip ci] 2020-07-09 05:47:37 +09:00
peaceiris
9560cb6d44 chore(release): 3.6.2
Some checks failed
Release / release (push) Has been cancelled
2020-07-09 05:47:36 +09:00
peaceiris
b6cbae3580 chore(release): Add build assets 2020-07-09 05:47:35 +09:00
Shohei Ueda
29acb8eaee ci: push dev docker image to packages (#384) 2020-07-09 05:33:46 +09:00
Shohei Ueda
2e976845a6 feat: enhance log message (#383)
Add warning deploy_key on windows-latest
- Currently, the deploy_key option is not supported on the windows-latest.
- Related #87

Close #359
2020-07-09 05:15:51 +09:00
Sarisia
31cdbe5222 fix: order of checks in setGithubToken (#382)
- Fixes #358
- Related #359
2020-07-09 04:26:02 +09:00
Shohei Ueda
c6333d41f0 ci: add Code Scanning workflow (#381) 2020-07-07 16:37:55 +09:00
Shohei Ueda
4dfc201b55 ci: add workflow_dispatch event
> You can now create workflows that are manually triggered with the new workflow_dispatch event.
> You will then see a 'Run workflow' button on the Actions tab, enabling you to easily trigger a run.
> You can choose which branch the workflow is run on.

https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
2020-07-07 16:06:26 +09:00
dependabot[bot]
b882ee3b2a deps: bump @types/jest from 26.0.3 to 26.0.4 (#380)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.3 to 26.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-07 14:25:29 +09:00
dependabot[bot]
ef42af2aef deps: bump @types/node from 12.12.47 to 12.12.48 (#379)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.47 to 12.12.48.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-07 14:25:18 +09:00
dependabot[bot]
f2192db227 deps: bump eslint-plugin-jest from 23.17.1 to 23.18.0 (#378)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.17.1 to 23.18.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v23.17.1...v23.18.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-06 15:42:52 +09:00
Shohei Ueda
c6eab4153b deps: bump node from 12.18.1 to 12.18.2 (#376) 2020-07-02 22:37:18 +09:00
dependabot[bot]
05b3340742 ci: bump codecov/codecov-action from v1.0.7 to v1.0.10 (#375)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.7 to v1.0.10.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.7...f3570723ef743f6942b6a480461ed0cd6c0f9baa)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-02 16:26:07 +09:00
dependabot[bot]
ad23393e24 deps: bump typescript from 3.9.5 to 3.9.6 (#374)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.5 to 3.9.6.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-02 13:11:35 +09:00
dependabot[bot]
ac980646cf ci: bump actions/setup-node from v2.0.0 to v2.1.0 (#373)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.0.0 to v2.1.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.0.0...1ae8f4b1fd89676f69b55d3dd6932b6df089ff7b)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-30 18:46:52 +09:00
dependabot[bot]
4fd6bd94b6 deps: bump @actions/github from 3.0.0 to 4.0.0 (#372)
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-29 11:56:04 +09:00
Shohei Ueda
f86ecdfe86 docs: Add use case (#371)
A GitHub Free Plan account cannot use the GitHub Pages in a private repository. To make your source contents private and deploy it with the GitHub Pages, you can deploy your site from a private repository to a public repository using the external_repository.
2020-06-27 22:42:01 +09:00
dependabot[bot]
31b8c32f32 deps: bump @types/jest from 26.0.0 to 26.0.3 (#367)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.0 to 26.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-25 17:11:11 +09:00
Shohei Ueda
91a3cf4cdd chore: change prettier to plugin:prettier/recommended (#366) 2020-06-25 04:45:42 +09:00
dependabot[bot]
89628f0310 deps: bump jest-circus from 26.0.1 to 26.1.0 (#365)
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 26.0.1 to 26.1.0.
- [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/v26.1.0/packages/jest-circus)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-24 15:15:43 +09:00
Shohei Ueda
1ceef71a57 ci: remove open-pull-requests-limit 2020-06-24 14:12:15 +09:00
dependabot[bot]
a72f52102f deps: bump eslint-plugin-jest from 23.16.0 to 23.17.1 (#364)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.16.0 to 23.17.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v23.16.0...v23.17.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-24 14:11:45 +09:00
Shohei Ueda
4d89a385db chore: change printWidth from 80 to 100 (#362) 2020-06-22 05:40:26 +09:00
dependabot[bot]
b6801e6334 deps: bump eslint-plugin-jest from 23.13.2 to 23.16.0 (#361)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.13.2 to 23.16.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v23.13.2...v23.16.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-22 02:13:06 +09:00
dependabot[bot]
19976af8e5 ci: bump peaceiris/actions-mdbook from v1 to v1.1.12 (#360)
Bumps [peaceiris/actions-mdbook](https://github.com/peaceiris/actions-mdbook) from v1 to v1.1.12.
- [Release notes](https://github.com/peaceiris/actions-mdbook/releases)
- [Changelog](https://github.com/peaceiris/actions-mdbook/blob/master/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-mdbook/compare/v1...95a44014c14104ed598589e585d0a1c4214d50ef)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-22 02:12:37 +09:00
Shohei Ueda
f444b0ede2 ci: remove skipci job 2020-06-21 13:18:07 +09:00
Shohei Ueda
51c782389a docs: remove gitbook (#357)
- https://github.com/GitbookIO/gitbook

> As the efforts of the GitBook team are focused on the GitBook.com platform, the CLI is no longer under active development.
2020-06-20 10:25:32 +09:00
Shohei Ueda
f954d4113e ci: add is_skip [skip ci] 2020-06-19 20:48:25 +09:00
Shohei Ueda
2165a2b5fc deps: bump node from 12.18.0 to 12.18.1 (#356) 2020-06-19 11:50:39 +09:00
peaceiris
688a3b3d0c docs: bump actions/cache from v1 to v2 2020-06-19 00:43:10 +09:00
peaceiris
d2b7688ae3 docs: bump actions/setup-node from v1 to v2 2020-06-19 00:38:35 +09:00
dependabot[bot]
70411f07e7 ci: bump actions/checkout from v2.3.0 to v2.3.1 (#355)
Bumps [actions/checkout](https://github.com/actions/checkout) from v2.3.0 to v2.3.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/master/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.0...28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-19 00:24:14 +09:00
dependabot[bot]
3971a95d5a deps: bump lint-staged from 10.2.10 to 10.2.11 (#354)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.10 to 10.2.11.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.10...v10.2.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-18 12:14:58 +09:00
dependabot[bot]
744621d13d ci: bump actions/checkout from v2 to v2.3.0 (#353)
Bumps [actions/checkout](https://github.com/actions/checkout) from v2 to v2.3.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/master/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...b4483adec309c0d01a5435c5e24eb40de5773ad9)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-17 14:28:08 +09:00
dependabot[bot]
5d0c4dbf35 deps: bump eslint-plugin-prettier from 3.1.3 to 3.1.4 (#351)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.3...v3.1.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-16 12:36:39 +09:00
dependabot[bot]
738b4dea9f deps: bump lint-staged from 10.2.9 to 10.2.10 (#350)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.9 to 10.2.10.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.9...v10.2.10)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-15 12:25:26 +09:00
dependabot[bot]
852c3a3ca6 deps: bump @types/node from 12.12.45 to 12.12.47 (#347)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.45 to 12.12.47.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-11 11:11:06 +09:00
dependabot[bot]
7ddf1f7f90 deps: bump @types/jest from 25.2.3 to 26.0.0 (#346)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.3 to 26.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-10 13:15:19 +09:00
Shohei Ueda
58b4bf3981 docs: remove link to v2 2020-06-09 16:02:39 +09:00
dependabot[bot]
a117f832ce deps: bump @types/node from 12.12.44 to 12.12.45 (#345)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.44 to 12.12.45.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-09 11:22:20 +09:00
dependabot[bot]
2d9155e27f deps: bump typescript from 3.9.3 to 3.9.5 (#343)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.3...v3.9.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-08 11:12:49 +09:00
dependabot[bot]
37213103b1 deps: bump @actions/github from 2.2.0 to 3.0.0 (#342)
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-07 12:20:44 +09:00
Shohei Ueda
8b93bc127f chore: update ignore version @types/node (#341) 2020-06-07 11:44:13 +09:00
Shohei Ueda
aa82aebc1d chore: Add note reading official docs
Please read the latest GitHub Actions official documentation and learn about the basic spec and concepts

cf. #339
2020-06-07 09:59:36 +09:00
peaceiris
e705cf59bc chore: Comment out explanations 2020-06-06 05:37:29 +09:00
dependabot[bot]
215b80c84b deps: bump @types/node from 12.12.43 to 12.12.44 (#340)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.43 to 12.12.44.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-06 00:52:32 +09:00
dependabot[bot]
96f4391cd5 deps: bump lint-staged from 10.2.8 to 10.2.9 (#338)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.8 to 10.2.9.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.8...v10.2.9)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-05 11:11:24 +09:00
dependabot[bot]
1f596ab2b7 deps: bump lint-staged from 10.2.7 to 10.2.8 (#337)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.7 to 10.2.8.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.7...v10.2.8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-04 13:09:49 +09:00
Shohei Ueda
3de5b2308f docs: Add ubuntu-20.04 2020-06-04 09:11:54 +09:00
Shohei Ueda
773665f4f0 ci: Add ubuntu-20.04 to matrix (#336)
https://github.com/actions/virtual-environments/issues/228#issuecomment-637362224
2020-06-04 09:08:35 +09:00
Shohei Ueda
929a7d0a6a deps: bump node from 12.17.0 to 12.18.0 (#335) 2020-06-03 22:17:42 +09:00
dependabot[bot]
d1afc2e8ce ci: bump codecov/codecov-action from v1 to v1.0.7 (#333)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1 to v1.0.7.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...f532c3a1452359a7f96c37efc741537b80555c74)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-03 22:04:30 +09:00
dependabot[bot]
59c0ce4284 ci: bump actions/setup-node from v1.4.1 to v2.0.0 (#334)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1.4.1 to v2.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1.4.1...e434342e4e324065b1b19b24586c710a1a68d2d7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-03 22:03:49 +09:00
Shohei Ueda
65dc7af084 ci: Add package-ecosystem github-actions 2020-06-03 21:48:50 +09:00
Shohei Ueda
4477775802 ci: Pin to actions/setup-node v1.4.1 2020-06-03 21:45:40 +09:00
Shohei Ueda
ce787cf051 deps: bump node from 12.16.3 to 12.17.0 (#332) 2020-06-03 09:06:27 +09:00
Shohei Ueda
73cf1d15d9 deps: bump git from 2.26.2 to 2.27.0 (#331) 2020-06-03 09:05:29 +09:00
Shohei Ueda
6cad446381 docs: remove Dependabot status badge 2020-06-03 08:32:05 +09:00
dependabot-preview[bot]
c4529a59aa ci: Update Dependabot config file (#330)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-03 08:07:26 +09:00
Shohei Ueda
646a1a3881 chore: fix extends (#329) 2020-06-03 06:48:18 +09:00
dependabot-preview[bot]
a17e9d437e deps: bump @types/node from 12.12.42 to 12.12.43 (#328) 2020-06-02 02:48:05 +00:00
dependabot-preview[bot]
fe5636cf95 deps: bump lint-staged from 10.2.6 to 10.2.7 (#327) 2020-05-29 06:31:09 +00:00
codefactor-io[bot]
8f1f960923 chore: [CodeFactor] Apply fixes (#326)
Co-authored-by: codefactor-io <support@codefactor.io>
2020-05-28 22:39:00 +09:00
Shohei Ueda
5b6baff975 chore: update url 2020-05-28 16:15:25 +09:00
Shohei Ueda
938e1fa9f5 docs: enhance external repository section
#245 #318
2020-05-28 16:08:04 +09:00
dependabot-preview[bot]
fef0123d21 deps: bump eslint-plugin-jest from 23.13.1 to 23.13.2 (#325) 2020-05-26 21:11:29 +00:00
Shohei Ueda
6b188a8022 deps: Add eslint plugins for prettier (#323) 2020-05-26 21:45:48 +09:00
Shohei Ueda
3203c05a3a docs: bump hugo to 0.71.1 2020-05-25 19:01:27 +09:00
peaceiris
ea6d487bc7 docs: update Hugo workflow example 2020-05-24 12:16:32 +09:00
dependabot-preview[bot]
fcbee38355 deps: bump @zeit/ncc from 0.22.2 to 0.22.3 (#321)
Bumps [@zeit/ncc](https://github.com/zeit/ncc) from 0.22.2 to 0.22.3.
- [Release notes](https://github.com/zeit/ncc/releases)
- [Commits](https://github.com/zeit/ncc/compare/0.22.2...0.22.3)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-23 17:17:01 +09:00
dependabot-preview[bot]
89c0c9cbfa deps: bump js-yaml from 3.13.1 to 3.14.0 (#320) 2020-05-22 18:42:27 +00:00
dependabot-preview[bot]
64f3c7fc7f deps: bump lint-staged from 10.2.4 to 10.2.6 (#317) 2020-05-22 11:24:38 +00:00
dependabot-preview[bot]
e150cedd96 deps: bump @types/node from 12.12.41 to 12.12.42 (#316) 2020-05-21 21:19:30 +00:00
peaceiris
6d42c2c3b6 chore: Please follow the issue templates 2020-05-21 23:00:37 +09:00
dependabot-preview[bot]
a4f1f945d9 deps: bump @types/node from 12.12.38 to 12.12.41 (#315) 2020-05-21 02:34:09 +00:00
dependabot-preview[bot]
54e6a6f172 deps: bump typescript from 3.9.2 to 3.9.3 (#314) 2020-05-20 02:38:33 +00:00
dependabot-preview[bot]
2076093b93 deps: bump @typescript-eslint/eslint-plugin from 2.33.0 to 2.34.0 (#311) 2020-05-19 19:24:13 +00:00
dependabot-preview[bot]
5a8b86ffc3 deps: bump @types/jest from 25.2.2 to 25.2.3 (#310) 2020-05-19 03:15:19 +00:00
dependabot-preview[bot]
c50767dbfe deps: bump @zeit/ncc from 0.22.1 to 0.22.2 (#308) 2020-05-19 02:11:26 +00:00
dependabot-preview[bot]
e1eecfc328 deps: bump @typescript-eslint/parser from 2.33.0 to 2.34.0 (#307) 2020-05-18 22:16:31 +00:00
dependabot-preview[bot]
f0fa0c21ed deps: bump lint-staged from 10.2.2 to 10.2.4 (#306) 2020-05-18 17:56:50 +00:00
dependabot-preview[bot]
dcdf5ddc8b deps: bump eslint-plugin-jest from 23.13.0 to 23.13.1 (#304) 2020-05-17 09:25:58 +00:00
dependabot-preview[bot]
31d3feb0ee deps: bump eslint-plugin-jest from 23.12.0 to 23.13.0 (#303) 2020-05-16 10:09:39 +00:00
dependabot-preview[bot]
9597f4c0a9 deps: bump eslint-plugin-jest from 23.11.0 to 23.12.0 (#302) 2020-05-16 09:00:06 +00:00
dependabot-preview[bot]
489eaccb26 deps: bump @types/js-yaml from 3.12.3 to 3.12.4 (#301) 2020-05-15 11:46:08 +00:00
dependabot-preview[bot]
df4a516dab deps: bump @types/jest from 25.2.1 to 25.2.2 (#299) 2020-05-13 18:59:02 +00:00
Shohei Ueda
e27e4b7140 docs: Remove feed badge 2020-05-14 00:29:37 +09:00
dependabot-preview[bot]
d8522eea61 deps: bump @typescript-eslint/eslint-plugin from 2.32.0 to 2.33.0 (#298) 2020-05-13 02:30:04 +00:00
dependabot-preview[bot]
cf2e9edd2a deps: bump @typescript-eslint/parser from 2.32.0 to 2.33.0 (#295) 2020-05-12 23:00:46 +00:00
dependabot-preview[bot]
8cb34fe1e5 deps: bump typescript from 3.8.3 to 3.9.2 (#294) 2020-05-12 22:11:09 +00:00
dependabot-preview[bot]
859ffbd0d0 deps: bump eslint-plugin-jest from 23.10.0 to 23.11.0 (#293) 2020-05-12 20:14:20 +00:00
dependabot-preview[bot]
d30737529f deps: bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.32.0 (#292) 2020-05-12 00:02:12 +00:00
dependabot-preview[bot]
e53cc4cb81 deps: bump @typescript-eslint/parser from 2.31.0 to 2.32.0 (#291) 2020-05-11 20:53:17 +00:00
dependabot-preview[bot]
ce66f63638 deps: bump ts-jest from 25.5.0 to 25.5.1 (#290) 2020-05-09 09:08:19 +00:00
dependabot-preview[bot]
fd82b38c08 deps: bump eslint-plugin-jest from 23.9.0 to 23.10.0 (#289) 2020-05-09 00:15:12 +00:00
Shohei Ueda
a8209677e6 docs: Use yarn install --frozen-lockfile (#288)
cf. https://classic.yarnpkg.com/en/docs/cli/install
2020-05-09 00:25:08 +09:00
Shohei Ueda
489a03aac4 ci: remove pull_request.types
cf. https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
> By default, a workflow only runs when a pull_request's activity type is opened, synchronize, or reopened.
2020-05-08 22:42:10 +09:00
dependabot-preview[bot]
d6f110ce1e deps: bump @actions/github from 2.1.1 to 2.2.0 (#287)
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-08 20:56:35 +09:00
Shohei Ueda
db632c70f2 ci: Change update_type from all to semver:minor 2020-05-07 11:33:10 +09:00
dependabot-preview[bot]
8380af7d49 deps: bump standard-version from 7.1.0 to 8.0.0 (#286) 2020-05-06 20:14:40 +00:00
dependabot-preview[bot]
377bddc67b deps: bump ts-jest from 25.4.0 to 25.5.0 (#285) 2020-05-06 12:41:24 +00:00
dependabot-preview[bot]
f621c70917 deps: bump @types/node from 12.12.37 to 12.12.38 (#284) 2020-05-05 19:53:18 +00:00
dependabot-preview[bot]
4b44fa2951 deps: bump jest-circus from 26.0.0 to 26.0.1 (#283) 2020-05-05 15:23:05 +00:00
dependabot-preview[bot]
c5a0e44f79 deps: bump jest-circus from 25.5.4 to 26.0.0 (#282) 2020-05-04 22:05:13 +00:00
dependabot-preview[bot]
83dbf819fb deps: bump @typescript-eslint/eslint-plugin from 2.30.0 to 2.31.0 (#281) 2020-05-04 21:50:07 +00:00
dependabot-preview[bot]
cbe2833e9b deps: bump @typescript-eslint/parser from 2.30.0 to 2.31.0 (#280) 2020-05-04 21:23:34 +00:00
dependabot-preview[bot]
5b29ffa40d deps: bump eslint-plugin-jest from 23.8.2 to 23.9.0 (#278) 2020-05-04 13:53:30 +00:00
Shohei Ueda
c8f4fd4c5d ci: Change test cases 2020-05-04 11:55:40 +09:00
peaceiris
c639d964e8 docs: Fix image size 2020-05-04 10:30:24 +09:00
peaceiris
9c52277f7b chore(release): Remove build assets [skip ci] 2020-05-04 10:29:35 +09:00
peaceiris
8457ade3d7 chore(release): 3.6.1
Some checks failed
Release / release (push) Has been cancelled
2020-05-04 10:29:34 +09:00
peaceiris
bdb15640ef chore(release): Add build assets 2020-05-04 10:29:33 +09:00
peaceiris
f559ed8889 docs: Add example image for commit_message 2020-05-04 10:27:29 +09:00
Shohei Ueda
db3e60d230 feat: Fold logs using core.startGroup() (#277)
cf. https://github.com/actions/toolkit/blob/master/docs/commands.md
2020-05-04 10:23:22 +09:00
Shohei Ueda
504181401b test: Add test case for getCommitMessage() (#276) 2020-05-04 10:06:41 +09:00
peaceiris
b0da6c009f chore(release): Remove build assets [skip ci] 2020-05-04 09:51:28 +09:00
peaceiris
c56c9818a0 chore(release): 3.6.0
Some checks failed
Release / release (push) Has been cancelled
2020-05-04 09:51:27 +09:00
peaceiris
1c794ced3b chore(release): Add build assets 2020-05-04 09:51:26 +09:00
Shohei Ueda
0b7411e2cf feat: Add full_commit_message (#275)
* feat: Add full_commit_message
* ci: Add full_commit_message
* docs: Add full_commit_message

cf. #274
2020-05-04 09:50:38 +09:00
peaceiris
750c807fa1 chore: Enhance style 2020-05-04 00:52:58 +09:00
dependabot-preview[bot]
ae34186caa deps: bump jest from 25.5.3 to 25.5.4 (#272) 2020-05-02 08:30:17 +00:00
dependabot-preview[bot]
a5d411bf28 deps: bump jest-circus from 25.5.3 to 25.5.4 (#271) 2020-05-02 08:23:58 +00:00
peaceiris
2875e4112a Revert "ci: use github_token"
This reverts commit 9d27fac8dc.
2020-05-02 02:25:23 +09:00
Shohei Ueda
9d27fac8dc ci: use github_token 2020-05-02 02:21:22 +09:00
Shohei Ueda
7501463241 ci: Add test-ubuntu-20.04 job (#270)
- Bumps mdBook from 0.3.6 to 0.3.7
- Add test job for ubuntu 20.04

cf. #268
2020-05-01 15:10:19 +09:00
dependabot-preview[bot]
b9cccec41e deps: bump lint-staged from 10.2.1 to 10.2.2 (#269) 2020-05-01 04:44:42 +00:00
dependabot-preview[bot]
e782e1d323 deps: bump jest from 25.5.2 to 25.5.3 (#267) 2020-04-30 22:48:48 +00:00
dependabot-preview[bot]
c12a4b1908 deps: bump jest-circus from 25.5.2 to 25.5.3 (#266) 2020-04-30 22:28:14 +00:00
dependabot-preview[bot]
dd1933a7b4 deps: bump @actions/core from 1.2.3 to 1.2.4 (#265) 2020-04-30 17:21:50 +00:00
dependabot-preview[bot]
08093066ac deps: bump lint-staged from 10.2.0 to 10.2.1 (#264) 2020-04-30 15:00:06 +00:00
peaceiris
c603e10bc1 chore(release): Remove build assets [skip ci] 2020-04-30 23:49:32 +09:00
peaceiris
5fe58fddba chore(release): 3.5.10
Some checks failed
Release / release (push) Has been cancelled
2020-04-30 23:49:31 +09:00
peaceiris
54a4434749 chore(release): Add build assets 2020-04-30 23:49:28 +09:00
Shohei Ueda
20d80bcd8c docs: change to job level defaults
Change workflow level defaults.run.working-directory to job level in Docusaurus example.
2020-04-30 23:48:01 +09:00
Shohei Ueda
d9f616f4a2 docs: Add ubuntu-16.04
cf. #263
2020-04-30 23:42:27 +09:00
Shohei Ueda
e76c874d85 feat: Support ubuntu-16.04 (#263)
* ci: Add ubuntu-16.04
* ci: bump actions/upload-artifact from v1 to v2
* ci: Fix file name for all matrix
2020-04-30 23:36:53 +09:00
Shohei Ueda
029c1a08f9 docs: bump actions/setup-python from v1 to v2 (#262)
https://github.com/actions/setup-python/pull/87
https://github.com/actions/setup-python/pull/85

Testing https://github.com/peaceiris/mkdocs-material-boilerplate/pull/102
2020-04-30 23:13:03 +09:00
Shohei Ueda
eafac7a3ef docs: bump python from 3.6 to 3.8 2020-04-30 17:04:31 +09:00
Shohei Ueda
e4462d9bb6 docs: Enhance Python workflow example (#261)
4e1362e350

ccf9619480
https://github.com/actions/cache/pull/285
2020-04-30 17:03:08 +09:00
Shohei Ueda
91e6658ef0 docs: Enhance Supported Platforms 2020-04-30 16:38:29 +09:00
dependabot-preview[bot]
714f710922 deps: bump jest from 25.5.1 to 25.5.2 (#260) 2020-04-29 22:30:52 +00:00
dependabot-preview[bot]
813be0645e deps: bump jest-circus from 25.5.1 to 25.5.2 (#259) 2020-04-29 22:24:44 +00:00
peaceiris
a580dd75ed chore(release): Remove build assets [skip ci] 2020-04-30 03:07:46 +09:00
peaceiris
cf30185743 chore(release): 3.5.9
Some checks failed
Release / release (push) Has been cancelled
2020-04-30 03:07:45 +09:00
peaceiris
f815420c17 chore(release): Add build assets 2020-04-30 03:07:44 +09:00
peaceiris
e5aa21b8a8 chore: bump node from 12.16.2 to 12.16.3 2020-04-30 03:07:14 +09:00
dependabot-preview[bot]
d2178821cb deps: [security] bump @actions/http-client from 1.0.6 to 1.0.8 (#258) 2020-04-29 18:04:52 +00:00
dependabot-preview[bot]
6462e1bf5e deps: bump jest from 25.5.0 to 25.5.1 (#257) 2020-04-29 13:53:47 +00:00
dependabot-preview[bot]
051ddfc79a deps: bump jest-circus from 25.5.0 to 25.5.1 (#256) 2020-04-29 13:16:23 +00:00
Shohei Ueda
f191fb8187 deps: bump node from 12.16.2 to 12.16.3 (#255) 2020-04-29 15:34:00 +09:00
dependabot-preview[bot]
6cb5962c01 deps: bump @actions/exec from 1.0.3 to 1.0.4 (#254) 2020-04-29 05:23:43 +00:00
dependabot-preview[bot]
33b82d2be0 deps: bump prettier from 2.0.4 to 2.0.5 (#253) 2020-04-29 05:16:42 +00:00
peaceiris
a2c82a8833 chore(release): Remove build assets [skip ci] 2020-04-29 13:53:02 +09:00
peaceiris
286809f3da chore(release): 3.5.8
Some checks failed
Release / release (push) Has been cancelled
2020-04-29 13:53:01 +09:00
peaceiris
5e3936a404 chore(release): Add build assets 2020-04-29 13:53:00 +09:00
dependabot-preview[bot]
f97b3d256e deps: bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.30.0 (#252) 2020-04-29 04:15:11 +00:00
dependabot-preview[bot]
7b01d765e7 deps: bump @types/node from 12.12.36 to 12.12.37 (#251) 2020-04-29 04:03:20 +00:00
dependabot-preview[bot]
4976317340 deps: bump lint-staged from 10.1.6 to 10.2.0 (#250) 2020-04-29 03:50:29 +00:00
dependabot-preview[bot]
28e7732e93 deps: bump @typescript-eslint/parser from 2.28.0 to 2.30.0 (#249) 2020-04-29 02:21:55 +00:00
dependabot-preview[bot]
390b063535 deps: bump jest from 25.3.0 to 25.5.0 (#248) 2020-04-28 20:25:54 +00:00
dependabot-preview[bot]
50bcf7b81d deps: bump jest-circus from 25.3.0 to 25.5.0 (#247) 2020-04-28 20:04:15 +00:00
Shohei Ueda
1511f85feb docs: Enhance the Tips and FAQ section
- Enhance `First Deployment with GITHUB_TOKEN`
2020-04-28 14:25:48 +09:00
Shohei Ueda
db7681db4d deps: bump git from 2.26.1 to 2.26.2 (#246) 2020-04-25 23:06:07 +09:00
peaceiris
eda4527add chore: Add issue priority [skip ci] 2020-04-23 12:55:35 +09:00
peaceiris
0ab035e1c1 Revert "chore: Add issue priority [skip ci]"
This reverts commit af61d81606.
2020-04-23 12:53:19 +09:00
Shohei Ueda
af61d81606 chore: Add issue priority [skip ci] 2020-04-23 12:52:32 +09:00
Shohei Ueda
86114bb2c7 chore: update [skip ci] 2020-04-23 12:44:24 +09:00
Shohei Ueda
1139364d4c chore: enhance about [skip ci] 2020-04-23 12:43:08 +09:00
Shohei Ueda
e3404eb04b ci: Add hook for doctoc (#244) 2020-04-22 13:33:06 +09:00
dependabot-preview[bot]
c1bc06c3e6 deps: bump lint-staged from 10.1.5 to 10.1.6 (#241) 2020-04-19 09:43:53 +00:00
peaceiris
8632feabc7 docs: update 2020-04-19 14:14:03 +09:00
peaceiris
7d421d3e4c docs: update 2020-04-19 14:11:37 +09:00
peaceiris
95d87cfaa5 docs: update 2020-04-19 11:44:23 +09:00
dependabot-preview[bot]
cfc119fff7 deps: bump lint-staged from 10.1.4 to 10.1.5 (#240) 2020-04-18 08:29:08 +00:00
Shohei Ueda
4b0ac9453b docs: Add publish_branch and publish_dir (#239) 2020-04-18 14:30:22 +09:00
dependabot-preview[bot]
b7c9581509 deps: bump @types/node from 12.12.35 to 12.12.36 (#238) 2020-04-17 21:45:30 +00:00
dependabot-preview[bot]
fd97637134 deps: bump lint-staged from 10.1.3 to 10.1.4 (#237) 2020-04-17 14:48:13 +00:00
dependabot-preview[bot]
f69bcb9ae8 deps: bump ts-jest from 25.3.1 to 25.4.0 (#236) 2020-04-17 10:14:29 +00:00
Shohei Ueda
f1ebad9abb docs: Enhance cache key (#235) 2020-04-17 09:53:26 +09:00
Shohei Ueda
63cdebd96b docs: Enhance Docusaurus example workflow (#234)
- Add on.push.paths
- Add defaults.run.working-directory
  - https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#defaultsrun
  - https://github.blog/changelog/2020-04-15-github-actions-new-workflow-features/
2020-04-17 09:27:11 +09:00
peaceiris
4f693f0ddb chore(release): Remove build assets [skip ci] 2020-04-15 10:55:53 +09:00
peaceiris
1828d864ae chore(release): 3.5.7
Some checks failed
Release / release (push) Has been cancelled
2020-04-15 10:55:53 +09:00
peaceiris
dbc1ba3666 chore(release): Add build assets 2020-04-15 10:55:51 +09:00
Shohei Ueda
df5698c4aa deps: bump git from 2.26.0 to 2.26.1 (#233) 2020-04-15 10:50:03 +09:00
Shohei Ueda
9614091a5e docs: update 2020-04-15 09:25:23 +09:00
Shohei Ueda
98e0f6025c ci: delete stale workflow 2020-04-14 10:51:25 +09:00
Shohei Ueda
8dd38bec4d chore: bump node and npm (#232) 2020-04-14 10:31:15 +09:00
dependabot-preview[bot]
ddf2c5b9f1 deps: bump @typescript-eslint/eslint-plugin from 2.27.0 to 2.28.0 (#231) 2020-04-13 17:31:43 +00:00
dependabot-preview[bot]
d8356e3cf1 deps: bump @typescript-eslint/parser from 2.27.0 to 2.28.0 (#230) 2020-04-13 17:26:19 +00:00
Pierre Mavro
fb15409be9 docs: Update Docusaurus workflow example (#229)
* Updating Docusaurus config to make it work
* docs: Fix publish_dir

There were some issues, it was impossible to get it working just with a simple copy/paste

* Test repo: https://github.com/peaceiris/test-docusaurus
* Reference: https://docusaurus.io/docs/en/installation

Co-authored-by: peaceiris <30958501+peaceiris@users.noreply.github.com>
2020-04-13 23:27:34 +09:00
Shohei Ueda
9f90987bad docs: Add Swift Publish example (#228)
https://github.com/JohnSundell/Publish

Close #227
2020-04-11 23:58:23 +09:00
Shohei Ueda
596c2d5548 docs: Add branches 2020-04-11 23:53:15 +09:00
peaceiris
b6bc5040aa docs: bump hugo and mdbook 2020-04-11 02:59:20 +09:00
Shohei Ueda
6fcf128c18 deps: bump node 12.16.1 to 12.16.2 (#223) 2020-04-10 09:33:36 +09:00
dependabot-preview[bot]
bf8dc2ce19 deps: bump husky from 4.2.4 to 4.2.5 (#226) 2020-04-09 21:45:48 +00:00
dependabot-preview[bot]
abd7ea550b deps: bump husky from 4.2.3 to 4.2.4 (#225) 2020-04-09 16:54:41 +00:00
dependabot-preview[bot]
ab7b255432 deps: bump lint-staged from 10.1.2 to 10.1.3 (#224) 2020-04-09 15:25:09 +00:00
dependabot-preview[bot]
8af9b8c0d5 deps: bump @types/node from 12.12.34 to 12.12.35 (#222) 2020-04-08 19:15:53 +00:00
dependabot-preview[bot]
a07d7115c5 deps: bump jest from 25.2.7 to 25.3.0 (#221) 2020-04-08 15:26:31 +00:00
dependabot-preview[bot]
20e19cf1eb deps: bump jest-circus from 25.2.7 to 25.3.0 (#220) 2020-04-08 15:18:29 +00:00
dependabot-preview[bot]
da14e08646 deps: bump @typescript-eslint/parser from 2.26.0 to 2.27.0 (#218) 2020-04-07 02:30:05 +00:00
dependabot-preview[bot]
046c703d6d deps: bump @typescript-eslint/eslint-plugin from 2.26.0 to 2.27.0 (#219) 2020-04-07 02:25:48 +00:00
dependabot-preview[bot]
ab371259dd deps: bump prettier from 2.0.2 to 2.0.4 (#217) 2020-04-07 02:25:11 +00:00
dependabot-preview[bot]
711b0ed1cd deps: bump @zeit/ncc from 0.22.0 to 0.22.1 (#215)
Bumps [@zeit/ncc](https://github.com/zeit/ncc) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/zeit/ncc/releases)
- [Commits](https://github.com/zeit/ncc/compare/0.22.0...0.22.1)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-07 11:19:17 +09:00
dependabot-preview[bot]
e5063fa6dd deps: bump lint-staged from 10.1.1 to 10.1.2 (#214)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.1 to 10.1.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.1.1...v10.1.2)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-07 11:18:55 +09:00
peaceiris
58be994809 deps: npm audit fix 2020-04-04 18:52:25 +09:00
peaceiris
6d889ad7e9 ci: Add automerged_updates 2020-04-04 18:51:12 +09:00
dependabot-preview[bot]
37ce049d08 deps: bump @types/jest from 25.1.5 to 25.2.1 (#213)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.5 to 25.2.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-04 18:48:29 +09:00
Shohei Ueda
32a0227f7c docs: Add fetch-depth 0
Fetch all history for Hugo feature .GitInfo and .Lastmod
2020-04-04 14:58:15 +09:00
dependabot-preview[bot]
c742786fc9 deps: bump jest-circus from 25.2.6 to 25.2.7 (#209) 2020-04-03 15:45:01 +00:00
dependabot-preview[bot]
7f9aba2ea8 deps: bump jest from 25.2.6 to 25.2.7 (#210) 2020-04-03 15:33:22 +00:00
dependabot-preview[bot]
d48d5de82e deps: bump ts-jest from 25.3.0 to 25.3.1 (#211) 2020-04-03 15:28:17 +00:00
dependabot-preview[bot]
78d67e4cbe deps: bump @types/jest from 25.1.4 to 25.1.5 (#208) 2020-04-03 03:46:27 +00:00
dependabot-preview[bot]
7c0ae727e6 deps: bump jest-circus from 25.2.4 to 25.2.6 (#206) 2020-04-02 11:01:46 +00:00
dependabot-preview[bot]
af6a5970d8 deps: bump jest from 25.2.4 to 25.2.6 (#207) 2020-04-02 10:53:20 +00:00
Shohei Ueda
3789ef4a0a ci: Add cname 2020-04-02 19:34:58 +09:00
dependabot-preview[bot]
42a3ae6a38 deps: bump lint-staged from 10.1.0 to 10.1.1 (#205) 2020-03-31 14:48:26 +00:00
Shohei Ueda
a93c85ca96 docs: update test badge 2020-03-31 21:32:03 +09:00
Shohei Ueda
ed5a99d637 ci: Merge test workflows (#204) 2020-03-31 21:26:20 +09:00
dependabot-preview[bot]
45a2a58fb0 deps: bump @types/node from 12.12.32 to 12.12.34 (#203) 2020-03-31 07:17:40 +00:00
dependabot-preview[bot]
042b824d8b deps: bump @typescript-eslint/parser from 2.25.0 to 2.26.0 (#200) 2020-03-30 18:32:54 +00:00
dependabot-preview[bot]
ca2c254157 deps: bump @typescript-eslint/eslint-plugin from 2.25.0 to 2.26.0 (#201) 2020-03-30 18:26:11 +00:00
dependabot-preview[bot]
3ed76c92c6 deps: bump lint-staged from 10.0.10 to 10.1.0 (#199) 2020-03-30 13:52:38 +00:00
dependabot-preview[bot]
e26a05e473 deps: bump ts-jest from 25.2.1 to 25.3.0 (#198) 2020-03-30 10:19:14 +00:00
peaceiris
d59e15bbd0 docs: Add github_token section 2020-03-30 17:31:13 +09:00
Shohei Ueda
3e53047dc0 docs: fix typo 2020-03-30 17:22:59 +09:00
dependabot-preview[bot]
339315a4b0 deps: bump jest from 25.2.3 to 25.2.4 (#197) 2020-03-29 19:58:23 +00:00
dependabot-preview[bot]
f5eb08fafc deps: bump jest-circus from 25.2.3 to 25.2.4 (#196) 2020-03-29 19:48:08 +00:00
Shohei Ueda
c276f65cf9 docs: Add link to interview (#194)
[GitHub Action Hero: Shohei Ueda - The GitHub Blog](https://github.blog/2020-03-22-github-action-hero-shohei-ueda/)
2020-03-29 23:36:47 +09:00
dependabot-preview[bot]
9dddc3350f deps: bump lint-staged from 10.0.9 to 10.0.10 (#195) 2020-03-29 13:33:34 +00:00
Shohei Ueda
0a1633ac31 ci: bump mdbook from 0.3.5 to 0.3.6 2020-03-29 18:19:30 +09:00
Shohei Ueda
164addf07d docs: bump mdbook from 0.3.5 to 0.3.6 2020-03-29 18:17:51 +09:00
Shohei Ueda
fbff0cd1e0 docs: Improve section name of enable_jekyll (#193) 2020-03-29 18:14:08 +09:00
Shohei Ueda
9597ab97de docs: bump node from 10 to 12 (#192) 2020-03-29 18:08:42 +09:00
Shohei Ueda
014420965c docs: Improve Docusaurus example (#191) 2020-03-29 15:53:22 +09:00
Shohei Ueda
87399813a5 docs: Improve Elm example (#190) 2020-03-29 15:20:03 +09:00
Shohei Ueda
2ea85f7322 docs: Improve Flutter example (#189) 2020-03-29 15:01:07 +09:00
dependabot-preview[bot]
e31acce9d3 deps: bump @types/node from 12.12.31 to 12.12.32 (#187) 2020-03-28 01:41:22 +00:00
dependabot-preview[bot]
25deb782d0 deps: bump jest from 25.2.2 to 25.2.3 (#186) 2020-03-26 21:03:58 +00:00
dependabot-preview[bot]
0e2b180da6 deps: bump jest-circus from 25.2.2 to 25.2.3 (#185) 2020-03-26 20:41:33 +00:00
dependabot-preview[bot]
1b904544aa deps: bump jest-circus from 25.2.1 to 25.2.2 (#183) 2020-03-26 19:05:13 +00:00
dependabot-preview[bot]
85823c67e1 deps: bump jest from 25.2.1 to 25.2.2 (#184) 2020-03-26 19:00:27 +00:00
Shohei Ueda
3183d3481b deps: bump git from 2.25.1 to 2.26.0 (#182) 2020-03-26 21:10:58 +09:00
dependabot-preview[bot]
2be10a7999 deps: bump jest-circus from 25.2.0 to 25.2.1 (#181) 2020-03-26 09:48:36 +00:00
dependabot-preview[bot]
9f0d4d44b9 deps: bump jest from 25.2.0 to 25.2.1 (#180) 2020-03-26 09:43:44 +00:00
dependabot-preview[bot]
669db9c5d1 deps: bump jest-circus from 25.1.0 to 25.2.0 (#178) 2020-03-25 18:25:06 +00:00
dependabot-preview[bot]
75680dae34 deps: bump jest from 25.1.0 to 25.2.0 (#179) 2020-03-25 18:17:22 +00:00
Shohei Ueda
465b328f75 ci: Add dev-image workflow (#177) 2020-03-25 19:37:45 +09:00
Shohei Ueda
7c4605913c chore: Add minify option to ncc 2020-03-25 19:36:13 +09:00
dependabot-preview[bot]
618acc18f3 deps: bump @types/node from 12.12.30 to 12.12.31 (#176) 2020-03-25 08:18:05 +00:00
dependabot-preview[bot]
36c6bd42bd deps: bump @types/js-yaml from 3.12.2 to 3.12.3 (#175) 2020-03-25 05:17:58 +00:00
dependabot-preview[bot]
bb022f3294 deps: bump lint-staged from 10.0.8 to 10.0.9 (#174) 2020-03-24 05:37:23 +00:00
dependabot-preview[bot]
1a3f0fd0f6 deps: bump @zeit/ncc from 0.21.1 to 0.22.0 (#172) 2020-03-24 03:16:45 +00:00
dependabot-preview[bot]
4933c8ef88 deps: bump prettier from 2.0.1 to 2.0.2 (#173) 2020-03-24 03:11:30 +00:00
dependabot-preview[bot]
ecd8e7bc48 deps: bump @typescript-eslint/eslint-plugin from 2.24.0 to 2.25.0 (#171) 2020-03-23 19:33:55 +00:00
dependabot-preview[bot]
04cd6de8fd deps: bump @typescript-eslint/parser from 2.24.0 to 2.25.0 (#170) 2020-03-23 19:27:58 +00:00
Albert
8019d941f3 feat: Set outputs.skip when action skipped
cf. #165
2020-03-22 16:16:36 +09:00
Shohei Ueda
cf8d655310 ci: comment out pull_request event 2020-03-22 16:09:54 +09:00
Shohei Ueda
6cf4da4de2 ci: Add GitHub context dump step [skip ci] 2020-03-22 16:06:43 +09:00
dependabot-preview[bot]
148a6573c6 deps: bump prettier from 1.19.1 to 2.0.1 (#167) 2020-03-22 06:57:08 +00:00
Shohei Ueda
0294e8c526 docs: bump actions/checkout to v2 in Hugo example 2020-03-21 12:51:05 +09:00
Shohei Ueda
2a787f0182 ci: set update_schedule live 2020-03-17 18:51:43 +09:00
dependabot-preview[bot]
62dcd84517 deps: bump @typescript-eslint/eslint-plugin from 2.23.0 to 2.24.0 (#162) 2020-03-17 02:31:36 +00:00
dependabot-preview[bot]
7c5e9bef11 deps: bump @typescript-eslint/parser from 2.23.0 to 2.24.0 (#161) 2020-03-17 02:22:47 +00:00
Shohei Ueda
3f58382eea chore: Print context for debug (#160)
* chore: Print context for debug
* fix: debug message
2020-03-16 13:56:58 +09:00
peaceiris
c50f9fd17d docs: Add link to example 2020-03-16 13:09:31 +09:00
peaceiris
1ee7d6e98a docs: Add path to workflow file 2020-03-16 13:05:28 +09:00
peaceiris
e2a54ec0b9 docs: Add github/personal-website
Add an example workflow for github/personal-website

https://github.com/github/personal-website
2020-03-16 13:01:54 +09:00
peaceiris
9794f98ff1 chore(release): Remove build assets [skip ci] 2020-03-16 12:03:50 +09:00
peaceiris
ba0b7df03e chore(release): 3.5.6
Some checks failed
Release / release (push) Has been cancelled
2020-03-16 12:03:50 +09:00
peaceiris
87a781f6ce chore(release): Add build assets 2020-03-16 12:03:49 +09:00
Shohei Ueda
6fa13fefb3 fix: skip on fork (#159) 2020-03-16 12:03:08 +09:00
peaceiris
efb69e1873 chore(release): Remove build assets [skip ci] 2020-03-16 11:49:23 +09:00
peaceiris
9d932c08b7 chore(release): 3.5.5
Some checks failed
Release / release (push) Has been cancelled
2020-03-16 11:49:22 +09:00
peaceiris
53c9fb0da1 chore(release): Add build assets 2020-03-16 11:49:22 +09:00
Shohei Ueda
d6bd6182f2 fix: skip on fork if pull_request (#158)
cf. #157
2020-03-16 11:48:40 +09:00
peaceiris
01fdaf2f02 chore: Add new task all 2020-03-16 00:43:59 +00:00
peaceiris
75c03d0413 chore(release): Remove build assets [skip ci] 2020-03-16 09:01:39 +09:00
peaceiris
ade70d3851 chore(release): 3.5.4
Some checks failed
Release / release (push) Has been cancelled
2020-03-16 09:01:38 +09:00
peaceiris
abaaadb545 chore(release): Add build assets 2020-03-16 09:01:37 +09:00
Shohei Ueda
4f06df820b fix: skip deployment on forks (#156)
* fix: skip on forks
* chore(release): 3.5.4-6

Close #153
2020-03-16 09:00:19 +09:00
peaceiris
ff31e77830 chore(release): Remove build assets [skip ci] 2020-03-14 06:50:48 +09:00
peaceiris
81f05c5524 chore(release): 3.5.3
Some checks failed
Release / release (push) Has been cancelled
2020-03-14 06:50:47 +09:00
peaceiris
60edcea535 chore(release): Add build assets 2020-03-14 06:50:46 +09:00
dependabot-preview[bot]
2fa0a59e21 deps: [security] bump acorn from 6.4.0 to 6.4.1 (#155) 2020-03-13 21:49:04 +00:00
dependabot-preview[bot]
d1f987783c deps: bump @types/node from 12.12.29 to 12.12.30 (#154) 2020-03-13 19:13:12 +00:00
peaceiris
0466bfb243 chore(release): Remove build assets [skip ci] 2020-03-12 23:24:13 +09:00
peaceiris
a228296ccf chore(release): 3.5.2
Some checks failed
Release / release (push) Has been cancelled
2020-03-12 23:24:13 +09:00
peaceiris
77664235e1 chore(release): Add build assets 2020-03-12 23:24:12 +09:00
Shohei Ueda
a1ff787715 fix: set commit author as local config (#152)
* fix: set commit author as local config

Close #151

Co-authored-by: Ryo Ota <nwtgck@nwtgck.org>
2020-03-12 22:58:12 +09:00
Shohei Ueda
b2788ae3c6 chore: reindent 2020-03-12 09:24:30 +09:00
dependabot-preview[bot]
680198766b deps: bump @typescript-eslint/parser from 2.22.0 to 2.23.0 (#149) 2020-03-10 08:09:38 +00:00
dependabot-preview[bot]
7f32718f66 deps: bump @typescript-eslint/eslint-plugin from 2.22.0 to 2.23.0 (#150) 2020-03-10 07:28:32 +00:00
peaceiris
0404476337 chore(release): Remove build assets [skip ci] 2020-03-09 21:46:01 +09:00
peaceiris
221953c929 chore(release): 3.5.1
Some checks failed
Release / release (push) Has been cancelled
2020-03-09 21:46:00 +09:00
peaceiris
dd094624d6 chore(release): Add build assets 2020-03-09 21:45:59 +09:00
peaceiris
a7bc3c37fd chore: Add missing descriptions 2020-03-09 21:45:20 +09:00
Shohei Ueda
c279167199 ci: update script link [skip ci] 2020-03-09 20:23:58 +09:00
dependabot-preview[bot]
a4c25ca778 deps: bump @types/jest from 25.1.3 to 25.1.4 (#148) 2020-03-08 19:36:32 +00:00
Shohei Ueda
9571d29e0d docs: fix user_name 2020-03-08 15:36:36 +09:00
Shohei Ueda
f3b165fbe1 ci: fix user_name 2020-03-08 15:33:52 +09:00
Shohei Ueda
eb73e9cb9d docs: fix user_name 2020-03-08 15:33:14 +09:00
Shohei Ueda
860ed1944f docs: fix user_name 2020-03-08 15:31:05 +09:00
Shohei Ueda
945c44d50a ci: fix user_name 2020-03-08 15:27:46 +09:00
imgbot[bot]
d8ed36f54a chore: [ImgBot] Optimize images (#147)
/images/committer_github_actions_bot.jpg -- 15.70kb -> 13.58kb (13.46%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-03-08 14:59:49 +09:00
peaceiris
d2d8e21d7e docs: Add bot committer image 2020-03-08 14:54:57 +09:00
Shohei Ueda
80c8fe5fb3 ci: Add GitHub Actions bot as committer 2020-03-08 14:42:09 +09:00
Shohei Ueda
81884efe7c docs: Add GitHub Actions bot committer 2020-03-08 14:39:04 +09:00
Shohei Ueda
618792b2f0 deps: bump hub 2.14.1 to 2.14.2 2020-03-07 19:32:13 +09:00
Shohei Ueda
86214f3d79 chore: Add user support issue template (#146)
* chore: Add user support issue template
* chore: Fix title
* chore: Add link to Actions Documentation

Close #58
2020-03-07 19:01:05 +09:00
Shohei Ueda
68520436f8 docs: Add notes about GitHub_TOKEN (#145)
* docs: Add notes about GitHub_TOKEN
* docs: Update images
2020-03-07 18:32:36 +09:00
peaceiris
fab0628782 chore(release): Remove build assets [skip ci] 2020-03-07 05:46:57 +09:00
peaceiris
73ceb68759 chore(release): 3.5.0
Some checks failed
Release / release (push) Has been cancelled
2020-03-07 05:46:57 +09:00
peaceiris
162bc9ee63 chore(release): Add build assets 2020-03-07 05:46:56 +09:00
Christoph Zwerschke
b76751b9ee docs: improve description of enable_jekyll=disable_nojekyll (see #130) (#132)
This assumes `enable_jekyll` is implemented as (the preferred) alias for `disable_nojekyll`

Close #130
2020-03-07 05:45:47 +09:00
Shohei Ueda
dc1169c5ba feat: Add enable_jekyll (#143)
Implementation of `enable_jekyll` option which is an alias for `disable_nojekyll`

- Issue #130 
- Pull Request #132
2020-03-07 05:30:51 +09:00
Shohei Ueda
ade8887479 deps: bump node 12.15.0 to 12.16.1 (#142)
* deps: bump node 12.15.0 to 12.16.1
* deps: bump git 2.25.0 to 2.25.1
* chore: validate node and npm version by engines field
* ci: Add npm i -g npm
2020-03-07 02:54:14 +09:00
peaceiris
2a9e88ed57 chore(release): Remove build assets [skip ci] 2020-03-07 00:50:04 +09:00
peaceiris
a65bea57e7 chore(release): 3.4.1
Some checks failed
Release / release (push) Has been cancelled
2020-03-07 00:50:03 +09:00
peaceiris
9fd8cd10e7 chore(release): Add build assets 2020-03-07 00:50:02 +09:00
Shohei Ueda
fd6e5fc7ce test: Add testing for set-tokens.ts (#126)
* test: remove main
* test: add getPublishRepo()
* test: Add setPersonalToken()
* test: Add setGithubToken()
* test: add showInputs()
* test: .nojekyll already exists
* test: ignore jest/expect-expect
* refactor: squash inputs log
* fix: throw error message
2020-03-07 00:41:30 +09:00
dependabot-preview[bot]
acd0462710 deps: bump eslint-plugin-jest from 23.8.1 to 23.8.2 (#141) 2020-03-06 09:57:10 +00:00
dependabot-preview[bot]
9faed51ce9 deps: bump @typescript-eslint/eslint-plugin from 2.21.0 to 2.22.0 (#139) 2020-03-03 04:23:53 +00:00
dependabot-preview[bot]
7c45cb42ca deps: bump @typescript-eslint/parser from 2.21.0 to 2.22.0 (#138) 2020-03-03 04:16:02 +00:00
dependabot-preview[bot]
ac39f89062 deps: bump @actions/core from 1.2.2 to 1.2.3 (#140) 2020-03-03 04:08:48 +00:00
dependabot-preview[bot]
dd0b5dfc69 deps: bump @types/node from 12.12.28 to 12.12.29 (#136) 2020-03-02 12:11:32 +00:00
dependabot-preview[bot]
140391da91 deps: bump typescript from 3.8.2 to 3.8.3 (#135)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.2 to 3.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.2...v3.8.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 12:10:37 +09:00
dependabot-preview[bot]
50988c17ae deps: bump eslint-plugin-jest from 23.8.0 to 23.8.1 (#134) 2020-03-02 02:57:40 +00:00
Nikos Katirtzis
a4da635d8c docs: Add Docusaurus example (#131) 2020-02-29 01:21:36 +09:00
dependabot-preview[bot]
56fe697825 deps: bump lint-staged from 10.0.7 to 10.0.8 (#129) 2020-02-26 06:24:18 +00:00
dependabot-preview[bot]
bc18026d43 deps: bump @typescript-eslint/parser from 2.20.0 to 2.21.0 (#127) 2020-02-25 03:17:48 +00:00
dependabot-preview[bot]
ce61f4bf52 deps: bump @typescript-eslint/eslint-plugin from 2.20.0 to 2.21.0 (#128) 2020-02-25 03:07:20 +00:00
Shohei Ueda
b81e21a3dc ci: Add deployment status check workflow (#125) 2020-02-24 20:35:46 +09:00
peaceiris
79cc24d126 chore(release): Remove build assets [skip ci] 2020-02-24 19:56:53 +09:00
peaceiris
364c31d33b chore(release): 3.4.0
Some checks failed
Release / release (push) Has been cancelled
2020-02-24 19:56:52 +09:00
peaceiris
3c65337a25 chore(release): Add build assets 2020-02-24 19:56:51 +09:00
peaceiris
7b12ca9aeb docs: update 2020-02-24 19:48:18 +09:00
Shohei Ueda
62e7849d7a docs: Put github_token as first example (#115)
* docs: Put github_token as first example
* docs: move Create SSH Deploy Key
* docs: remove github_token section
* docs: remove badge
* docs: remove How to add CNAME
* docs: remove Deployment completed but you cannot read
2020-02-24 19:35:55 +09:00
dependabot-preview[bot]
e0af1f7de0 deps: bump eslint-plugin-jest from 23.7.0 to 23.8.0 (#124)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.7.0 to 23.8.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v23.7.0...v23.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 19:04:41 +09:00
peaceiris
67f77416c9 chore(release): Remove build assets [skip ci] 2020-02-24 18:50:44 +09:00
peaceiris
d0ac7fa637 chore(release): 3.3.0
Some checks failed
Release / release (push) Has been cancelled
2020-02-24 18:50:44 +09:00
peaceiris
da23196fc5 chore(release): Add build assets 2020-02-24 18:50:43 +09:00
Shohei Ueda
00fde1eb97 feat: Add disable_nojekyll and cname options (#119)
* feat: Add disable_nojekyll and cname options
* docs: Add cname and disable_nojekyll
* chore: Add vim
* chore(release): 3.3.0-0
* ci: Add codecov/codecov-action
* refactor: Enhance warning message

- Add .nojekyll file by default to only the master and gh-pages branches. When the file already exists, this action does nothing.
- When we set other branches to publish_branch, this action does not add .nojekyll file.

cf. https://github.com/peaceiris/actions-gh-pages/issues/112#issuecomment-589678269

Close #112

Co-authored-by: Daniel Himmelstein <daniel.himmelstein@gmail.com>
Co-authored-by: Nicolas Vanhoren <nicolas.vanhoren@gmail.com>
2020-02-24 18:49:55 +09:00
dependabot-preview[bot]
6244b197b6 deps: bump @zeit/ncc from 0.21.0 to 0.21.1 (#101) 2020-02-21 03:08:01 +00:00
dependabot-preview[bot]
e58a6c156e deps: bump typescript from 3.7.5 to 3.8.2 (#121) 2020-02-21 02:41:46 +00:00
dependabot-preview[bot]
b243cafb6e deps: bump @types/node from 12.12.27 to 12.12.28 (#122) 2020-02-21 02:34:38 +00:00
dependabot-preview[bot]
5d3cd509d9 deps: bump @actions/github from 2.1.0 to 2.1.1 (#120) 2020-02-21 02:27:59 +00:00
dependabot-preview[bot]
0b1dd44709 deps: bump @types/jest from 25.1.2 to 25.1.3 (#118) 2020-02-20 02:26:45 +00:00
dependabot-preview[bot]
e1bf32ad68 deps: bump ts-jest from 25.2.0 to 25.2.1 (#117) 2020-02-20 02:25:06 +00:00
peaceiris
61b479a8a4 chore(release): Remove build assets [skip ci] 2020-02-19 23:36:07 +09:00
peaceiris
8a36604631 chore(release): 3.2.0
Some checks failed
Release / release (push) Has been cancelled
2020-02-19 23:36:06 +09:00
peaceiris
a8fa52a354 chore(release): Add build assets 2020-02-19 23:36:05 +09:00
Shohei Ueda
74f652acfd feat: Remove warning about GITHUB_TOKEN (#108)
GitHub might have started to supporting to trigger the GitHub Pages build event by GITHUB_TOKEN on public repositories. (We can already use the token on private repositories.) Be careful, there is no official announcement about this by GitHub.

cf. #9
2020-02-19 23:22:07 +09:00
peaceiris
7b9b3b3f5f chore(release): Remove build assets [skip ci] 2020-02-19 22:58:13 +09:00
peaceiris
43687c847a chore(release): 3.1.0
Some checks failed
Release / release (push) Has been cancelled
2020-02-19 22:58:13 +09:00
peaceiris
218e357d06 chore(release): Add build assets 2020-02-19 22:58:12 +09:00
Shohei Ueda
2f5ccc92df fix: Use onetime workdir name (#109)
* chore: Allow to release from not master

* chore(release): 3.0.4-0
* chore(release): 3.0.4-1
2020-02-19 22:56:40 +09:00
Shohei Ueda
195ab8005d deps: Rollback @types/node 13 to 12 (#111) 2020-02-19 12:16:41 +09:00
dependabot-preview[bot]
591c4bdf2e deps: bump @types/node from 13.7.1 to 13.7.2 (#110) 2020-02-19 02:38:01 +00:00
dependabot-preview[bot]
1c50baa294 deps: bump @typescript-eslint/eslint-plugin from 2.19.2 to 2.20.0 (#105)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.19.2 to 2.20.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/v2.20.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 15:40:15 +09:00
dependabot-preview[bot]
73c09c703e deps: bump @typescript-eslint/parser from 2.19.2 to 2.20.0 (#106) 2020-02-18 06:21:35 +00:00
wu-yu-xuan
55a68e34ca refactor: fix typo and remove useless function (#107) 2020-02-18 14:30:50 +09:00
Shohei Ueda
60c31d23a8 docs: fix 2020-02-15 13:37:16 +09:00
Shohei Ueda
1887981f72 docs: update status of github_token 2020-02-15 13:36:36 +09:00
dependabot-preview[bot]
49a6939dbb deps: bump husky from 4.2.1 to 4.2.3 (#102) 2020-02-13 04:47:49 +00:00
dependabot-preview[bot]
0b00dd2a9f deps: bump @types/node from 13.7.0 to 13.7.1 (#99) 2020-02-12 05:16:14 +00:00
dependabot-preview[bot]
5d5e9338cc deps: bump @typescript-eslint/eslint-plugin from 2.19.0 to 2.19.2 (#97) 2020-02-11 08:24:41 +00:00
dependabot-preview[bot]
8b52b41ecb deps: bump @typescript-eslint/parser from 2.19.0 to 2.19.2 (#96) 2020-02-11 08:18:57 +00:00
dependabot-preview[bot]
0a1a58196b deps: bump eslint-plugin-jest from 23.6.0 to 23.7.0 (#95) 2020-02-10 07:30:56 +00:00
peaceiris
476fa94197 fix: Change final message 2020-02-08 17:31:09 +09:00
Shohei Ueda
0e542f9f92 deps: bump node from 12.14.1 to 12.15.0 (#94) 2020-02-08 10:28:28 +09:00
dependabot-preview[bot]
aec195ebb4 deps: bump @types/jest from 25.1.1 to 25.1.2 (#93) 2020-02-07 02:49:09 +00:00
peaceiris
41015898aa docs: rename author to Maintainer 2020-02-06 23:28:54 +09:00
Shohei Ueda
a7866b5bd3 docs: update publish_branch for v3 2020-02-06 19:30:48 +09:00
Shohei Ueda
752214aa33 docs: update job name 2020-02-06 15:49:52 +09:00
peaceiris
0b24a9f462 chore(release): Remove build assets [skip ci] 2020-02-06 15:40:05 +09:00
peaceiris
354d78ff6f chore(release): 3.0.3
Some checks failed
Release / release (push) Has been cancelled
2020-02-06 15:40:04 +09:00
peaceiris
7605281c4b chore(release): Add build assets 2020-02-06 15:40:03 +09:00
peaceiris
2948e5eda8 docs: update example of publish_branch 2020-02-06 15:39:37 +09:00
peaceiris
e8d0817a48 chore(release): Remove build assets [skip ci] 2020-02-06 15:22:10 +09:00
peaceiris
9d8382b381 chore(release): 3.0.3-0
Some checks failed
Release / release (push) Has been cancelled
2020-02-06 15:22:10 +09:00
peaceiris
8ccc2d9608 chore(release): Add build assets 2020-02-06 15:22:08 +09:00
Shohei Ueda
1b6740cb30 fix: Enable to create branch for first deployment (#92)
* fix: Enable to create branch for first deployment
* fix: remove pull_request

* ci: remove lint-staged husky for testing
* ci: Add git checkout {package-lock,package}.json
2020-02-06 15:21:18 +09:00
peaceiris
479c59e6d2 chore(release): Remove build assets [skip ci] 2020-02-06 01:55:56 +09:00
peaceiris
a22f6fc3b7 chore(release): 3.0.2
Some checks failed
Release / release (push) Has been cancelled
2020-02-06 01:55:55 +09:00
peaceiris
f28cc017a9 chore(release): Add build assets 2020-02-06 01:55:54 +09:00
peaceiris
f8b5a36401 fix: add filePath 2020-02-06 01:52:45 +09:00
peaceiris
848165cf9f fix: copy force 2020-02-06 01:50:30 +09:00
peaceiris
fb54d6af4d fix: add debug 2020-02-06 01:41:17 +09:00
peaceiris
6edc4c9764 fix: copy directories #89 2020-02-06 01:38:12 +09:00
peaceiris
d35854bdf8 docs: update log example for v3 2020-02-05 20:38:55 +09:00
peaceiris
f0177d176f docs: Add Supported Platforms table 2020-02-05 20:32:49 +09:00
peaceiris
0ba5bf3eeb docs: Add CodeFactor badge 2020-02-05 20:26:02 +09:00
peaceiris
cfdf8c43ed ci: use github_token for windows-latest 2020-02-05 20:11:40 +09:00
peaceiris
ce8c273a61 chore(release): Remove build assets [skip ci] 2020-02-05 20:06:02 +09:00
peaceiris
5378bd89b8 chore(release): 3.0.1
Some checks failed
Release / release (push) Has been cancelled
2020-02-05 20:06:01 +09:00
peaceiris
db62f9acd4 chore(release): Add build assets 2020-02-05 20:06:00 +09:00
Shohei Ueda
ed21b6a594 feat: Add getHomeDir() for windows (#86) 2020-02-05 20:04:31 +09:00
peaceiris
9f11da81ae refactor: change to core.debug 2020-02-05 18:50:44 +09:00
Shohei Ueda
a1375a4637 docs: remove v2 example 2020-02-05 18:38:36 +09:00
Shohei Ueda
1a26eaca33 docs: update 2020-02-05 18:37:47 +09:00
peaceiris
1a13108865 docs: update for v3 2020-02-05 17:12:51 +09:00
peaceiris
d0de38a352 docs: update for v3 2020-02-05 17:12:06 +09:00
peaceiris
b3cfcb13c0 docs: update for v3 2020-02-05 17:11:16 +09:00
peaceiris
b1aaa85b67 docs: update for v3 2020-02-05 17:10:00 +09:00
peaceiris
f1e7cd608c docs: update for v3 2020-02-05 17:09:37 +09:00
peaceiris
07a3f2915e docs: update for v3 2020-02-05 17:09:00 +09:00
peaceiris
02c38586a5 docs: update for v3 2020-02-05 17:08:19 +09:00
peaceiris
59bbb98387 docs: update for v3 2020-02-05 17:06:55 +09:00
peaceiris
9b3fcdf515 docs: remove Script mode section 2020-02-05 17:06:05 +09:00
peaceiris
be27dcce48 docs: update for v3 2020-02-05 17:05:37 +09:00
peaceiris
ccf71d1162 docs: update for v3 2020-02-05 17:04:27 +09:00
peaceiris
5fe4aa3f24 docs: update for v3 2020-02-05 17:03:44 +09:00
peaceiris
428902c6cd docs: update for v3 2020-02-05 17:02:53 +09:00
peaceiris
00bca7b88c docs: update for v3 2020-02-05 17:00:50 +09:00
peaceiris
c940278a4c docs: update overview 2020-02-05 15:44:30 +09:00
peaceiris
9cec798451 docs: update GitHub Actions badge 2020-02-05 15:39:32 +09:00
peaceiris
ec95e8e7aa docs: Add link to v2 2020-02-05 14:44:12 +09:00
peaceiris
5570fc7c70 chore(release): Remove build assets [skip ci] 2020-02-05 14:41:09 +09:00
peaceiris
4a69c2d60c chore(release): 3.0.0
Some checks failed
Release / release (push) Has been cancelled
2020-02-05 14:41:09 +09:00
peaceiris
f990e1a2a0 chore(release): Add build assets 2020-02-05 14:41:08 +09:00
peaceiris
0629babb09 fix: action title 2020-02-05 14:40:07 +09:00
peaceiris
a150e4e690 ci: force_orphan to false 2020-02-05 14:37:47 +09:00
peaceiris
ec09a8863c chore(release): Remove build assets [skip ci] 2020-02-05 14:36:37 +09:00
peaceiris
db6bfb8f36 chore(release): 3.0.0-1
Some checks failed
Release / release (push) Has been cancelled
2020-02-05 14:36:36 +09:00
peaceiris
22c1c9babc chore(release): Add build assets 2020-02-05 14:36:35 +09:00
Shohei Ueda
68b21c12af feat: Add TypeScript Action (#83)
cf. https://github.com/peaceiris/actions-github-pages
Close #54
2020-02-05 14:34:19 +09:00
Shohei Ueda
28b05fd3fa docs: Add Dart Package peanut for Flutter 2020-02-01 08:27:05 +09:00
Shohei Ueda
bacf0a61ea docs: add Dependabot badge 2020-01-31 11:43:57 +09:00
Shohei Ueda
2573b6139b docs: Add release feed badge 2020-01-26 17:14:24 +09:00
peaceiris
96360d5a85 docs: fix list 2020-01-25 13:15:26 +09:00
peaceiris
14069e75e2 docs: update support table about GITHUB_TOKEN 2020-01-25 13:14:35 +09:00
Shohei Ueda
d3edcde28b chore: Change update_schedule from weekly to daily 2020-01-24 06:37:51 +09:00
imgbot[bot]
d82725c632 docs: [ImgBot] Optimize images (#81)
/images/ogp.svg -- 42.09kb -> 42.06kb (0.06%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: Imgbot <help@imgbot.net>
2020-01-21 02:51:50 +09:00
peaceiris
e504bd5c38 docs: Update OGP image 2020-01-21 02:47:13 +09:00
dependabot-preview[bot]
45b43ab257 deps: bump alpine from 3.11.2 to 3.11.3
Bumps alpine from 3.11.2 to 3.11.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 09:20:42 +00:00
Shohei Ueda
0b9b068db1 chore: Fix typo 2020-01-19 00:07:44 +09:00
Shohei Ueda
9ba947f545 feat: Add tagName and tagMessage options (#78)
* feat: Add tagName and tagMessage options
* feat: Add print_info for tag options
* feat: Add tagOverwrite option
* docs: Add new section about Git tag options

Close #76
2020-01-18 12:55:18 +09:00
Shohei Ueda
ebe79a723c chore: Update LICENSE year 2020-01-16 17:42:57 +09:00
VladimirLogachev
c77e021886 docs: Add elm example workflow (#65)
* Add elm section to README.md
2020-01-12 21:56:01 +09:00
peaceiris
37729f1bb3 docs: Use head_commit instead of commits[0] 2020-01-07 00:20:56 +09:00
Shohei Ueda
76351d52b8 feat: Add commitMessage option (#75)
* feat: Add commitMessage option
* docs: Add custom commit message option

Close #74
cf. #72 and #73
2020-01-06 23:46:48 +09:00
Shohei Ueda
fd02997068 fix: link to commit hash for external deployment (#73)
cf. #72
2020-01-06 23:10:35 +09:00
dependabot-preview[bot]
127155c640 deps: bump alpine from 3.11.0 to 3.11.2 (#71)
Bumps alpine from 3.11.0 to 3.11.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-31 11:07:02 +09:00
Shohei Ueda
0252bbee4d feat: Add username and useremail options (#67)
* feat: Add username and useremail options
* docs: Add Git username and email section

Close #66
2019-12-24 15:22:01 +09:00
Shohei Ueda
bdedb4ed2b feat: ignore .git and .github (#63)
* feat: ignore .git and .github

Close #57

* feat: update alpine to 3.11.0

cf. #64
2019-12-24 15:02:00 +09:00
Shohei Ueda
d772f4e8eb docs: pin v2 2019-12-23 06:06:47 +09:00
peaceiris
bca5701620 docs: update toc 2019-12-23 06:03:42 +09:00
peaceiris
b8c0499d1e chore: Add workflow 2019-12-23 05:51:44 +09:00
Shohei Ueda
1e0de0fccd feat: Add INPUT_FORCEORPHAN (#43)
* feat: Add INPUT_FORCEORPHAN option (close #42)
* docs: Add new section about Force orphan
2019-12-23 05:49:21 +09:00
peaceiris
e376bcf7c0 Revert "chore: remove paths-ignore of pr"
This reverts commit 2437fbe949.
2019-12-18 07:08:38 +09:00
Shohei Ueda
2437fbe949 chore: remove paths-ignore of pr 2019-12-16 12:44:08 +09:00
Shohei Ueda
1bf8e45e86 docs: Use Flutter beta channel (#61) 2019-12-16 12:43:18 +09:00
Shohei Ueda
26c5cb82dd chore: upgrade actions/checkout to v2 2019-12-14 18:03:52 +09:00
Shohei Ueda
fb16fe135c chore: Rename workflow name 2019-12-14 18:02:39 +09:00
Shohei Ueda
e13d24c2ac chore: Add Pull Request to stale target 2019-12-09 10:39:58 +09:00
Shohei Ueda
830cc44454 Update purge-readme-image-cache.yml 2019-12-09 10:38:57 +09:00
peaceiris
cf4667b165 gha: Remove checkout step 2019-12-08 17:47:22 +09:00
peaceiris
299744c4cc gha: Remove push trigger 2019-12-08 17:43:01 +09:00
peaceiris
817fe3379a gha: Fix one liner 2019-12-08 17:38:48 +09:00
peaceiris
dbec91074d gha: Add checkout step 2019-12-08 17:35:21 +09:00
peaceiris
3514e583e0 gha: Add workflow to purge readme image cache 2019-12-08 17:30:38 +09:00
peaceiris
6da534f570 docs: Pin action version to v2 2019-12-05 19:59:16 +09:00
peaceiris
0803e7e969 gha: Pin version actions/checkout to v1 2019-12-05 19:54:25 +09:00
Shohei Ueda
14ef8241ef Create stale.yml 2019-12-05 17:07:08 +09:00
peaceiris
7194caacc4 docs: Pin actions/checkout version to v1 2019-12-05 03:41:25 +09:00
peaceiris
93de081763 docs: Enhance Flutter example 2019-12-04 15:58:41 +09:00
Taiga Mikami
f035f9f5e7 docs: add flutter web workflow example (#56) 2019-12-04 15:49:03 +09:00
Shohei Ueda
9d15cc0dbc docs: Pin ubuntu version (#55) 2019-12-04 08:31:30 +09:00
Shohei Ueda
626ca71936 docs: Add stable tag v2 of peaceiris/actions-hugo 2019-11-28 20:49:06 +09:00
Shohei Ueda
e4b680c116 Update docker-image-ci.yml 2019-11-28 19:51:55 +09:00
Shohei Ueda
8563c806e5 Update docker-image-ci.yml 2019-11-28 19:35:49 +09:00
Shohei Ueda
0ce7e18faa Update README.md 2019-11-28 00:07:26 +09:00
peaceiris
46649571f8 docs: Add image 2019-11-22 12:50:27 +09:00
Shohei Ueda
83eaab4031 Update README.md 2019-11-22 12:40:57 +09:00
Shohei Ueda
81110be679 docs: update actions-hugo tag 2019-11-22 12:27:37 +09:00
Shohei Ueda
455788d397 Update README.md 2019-11-21 17:05:13 +09:00
Shohei Ueda
8aea3055ca docs: Add token difference table 2019-11-21 17:02:38 +09:00
Shohei Ueda
1f2f7ef05e Update README.md 2019-11-20 23:13:55 +09:00
peaceiris
141d3dbf3a docs: update mdbook example workflow 2019-11-20 18:16:58 +09:00
peaceiris
c656aacd4e docs: update mdbook example workflow 2019-11-20 18:15:13 +09:00
Shohei Ueda
34c4d59419 docs: Add link to mdbook 2019-11-20 18:00:18 +09:00
peaceiris
db893610ff docs: update toc 2019-11-20 17:52:26 +09:00
Shohei Ueda
8daaa39070 docs: Add mdbook example 2019-11-20 17:51:46 +09:00
Shohei Ueda
8dc241e75a docs: update cache step example for yarn
https://github.com/actions/cache/blob/master/examples.md#node---yarn
https://github.com/actions/cache/pull/70
2019-11-14 00:33:03 +09:00
Shohei Ueda
20ef467283 Update README.md 2019-11-13 11:08:54 +09:00
Shohei Ueda
49a4a6dfc2 Update README.md 2019-11-13 09:28:54 +09:00
Shohei Ueda
74185ffe80 docs: Add cache step to Python example
Close #48
2019-11-13 09:18:16 +09:00
Shohei Ueda
097933f4ab Update README.md 2019-11-12 11:00:34 +09:00
Shohei Ueda
8972cc626f Update README.md 2019-11-11 22:01:38 +09:00
Shohei Ueda
1468ca9775 docs: Fix cache step of React and Next example 2019-11-10 21:19:30 +09:00
peaceiris
b172208a72 Merge branch 'docs/add-cache-step' 2019-11-10 14:20:26 +09:00
peaceiris
645870064d docs: Add cache step 2019-11-10 14:19:52 +09:00
Shohei Ueda
8981758aad gha: update to macos-latest 2019-11-07 08:20:14 +09:00
Shohei Ueda
f3c1954c3b Update docker-image-ci.yml 2019-11-03 13:30:26 +09:00
peaceiris
f47e77b3ef github: Add issue template config
https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
2019-10-29 09:50:58 +09:00
Shohei Ueda
0e1d168f48 Update issue templates 2019-10-29 09:46:29 +09:00
peaceiris
e4df4b2d92 github: Enhance action name 2019-10-29 03:30:53 +09:00
peaceiris
d6d7a5601d github: Remove FUNDING.yml 2019-10-29 03:27:49 +09:00
peaceiris
cd78101d9c docs: Remove Hugo --gc flag
This flag should be used on local.
It is wasteful to use the Garbage Collection on CI.
2019-10-24 21:46:41 +09:00
peaceiris
8076e77c01 github: Add CODEOWNERS 2019-10-24 06:04:56 +09:00
peaceiris
5e8a6ff9d9 ci: Add dependabot config 2019-10-23 19:52:00 +09:00
dependabot-preview[bot]
78a8692f54 build(deps): bump alpine from 3.10.2 to 3.10.3 (#44)
Bumps alpine from 3.10.2 to 3.10.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-22 15:08:18 +09:00
67 changed files with 13683 additions and 560 deletions

View File

@@ -0,0 +1,34 @@
{
"name": "Node.js",
"image": "docker.pkg.github.com/peaceiris/actions-gh-pages/dev:latest",
// Use 'settings' to set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [
"bungcip.better-toml",
"EditorConfig.EditorConfig",
"donjayamanne.githistory",
"eamodio.gitlens",
"oderwat.indent-rainbow",
"yzhang.markdown-all-in-one",
"shd101wyy.markdown-preview-enhanced",
"christian-kohler.path-intellisense",
"lfs.vscode-emacs-friendly",
"dbaeumer.vscode-eslint",
"firsttris.vscode-jest-runner",
"VisualStudioExptTeam.vscodeintellicode"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [3000],
// Specifies a command that should be run after the container has been created.
"postCreateCommand": "npm ci",
// Comment out the next line to run as root instead.
// "remoteUser": "runner"
}

View File

@@ -1,7 +1,2 @@
.git
.github
.hadolint.yaml
LICENSE
README.md
action.yml
images
.*
*

13
.editorconfig Normal file
View File

@@ -0,0 +1,13 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[Makefile]
indent_size = 4
indent_style = tab

3
.envrc Normal file
View File

@@ -0,0 +1,3 @@
nvmrc=~/.nvm/nvm.sh
source $nvmrc
nvm use

27
.eslintrc.json Normal file
View File

@@ -0,0 +1,27 @@
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019
},
"rules": {
}
}

3
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1,3 @@
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
* @peaceiris

9
.github/FUNDING.yml vendored
View File

@@ -1,9 +0,0 @@
# These are supported funding model platforms
# github: peaceiris
patreon: peaceiris
issuehunt: peaceiris
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
custom: # Replace with a single custom sponsorship URL

View File

@@ -0,0 +1,36 @@
---
name: User Support
about: Questions for this Action
title: 'sample_title'
labels: support
assignees: peaceiris
---
<!-- Note that an issue which does not follow the template will be closed silently. -->
### Check list before opening this issue
- [ ] I read the latest README
- I checked [Available Options](https://github.com/peaceiris/actions-gh-pages#options)
- I followed [Tips and FAQ](https://github.com/peaceiris/actions-gh-pages#tips-and-faq)
- I tried [Workflow Examples](https://github.com/peaceiris/actions-gh-pages#examples)
- I read the latest GitHub Actions official documentation and learned the basic spec and concepts
### Describe your question
<!-- A clear and concise description of what the question is. -->
### Link to your contents
<!--
- Link to your public repository here
- Link to your workflow here
-->
### Screenshots
<!-- If applicable, add screenshots to help explain your question. -->
### Additional context
<!-- Add any other context about the problem here. -->

44
.github/ISSUE_TEMPLATE/2_bug_report.md vendored Normal file
View File

@@ -0,0 +1,44 @@
---
name: Bug Report
about: First, use the User Support Issue Template
title: 'sample_title'
labels: bug
assignees: peaceiris
---
<!-- Note that an issue which does not follow the template will be closed silently. -->
### Describe the bug
<!-- A clear and concise description of what the bug is. -->
### To Reproduce
<!--
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->
### Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
### Screenshots
<!-- If applicable, add screenshots to help explain your problem. -->
### Your YAML file
<!--
- A link to your repository
- A link to your YAML file
-->
### Additional context
<!-- Add any other context about the problem here. -->

26
.github/ISSUE_TEMPLATE/3_proposal.md vendored Normal file
View File

@@ -0,0 +1,26 @@
---
name: Proposal
about: Suggest an idea for this project
title: 'sample_title'
labels: proposal
assignees: peaceiris
---
<!-- Note that an issue which does not follow the template will be closed silently. -->
### Is your feature request related to a problem? Please describe
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->
### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
### Additional context
<!-- Add any other context or screenshots about the feature request here. -->

11
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: GitHub Actions - GitHub Support Community Forum
url: https://github.community/c/github-actions
about: Please ask questions about GitHub Actions here.
- name: GitHub Pages Documentation
url: https://help.github.com/en/github/working-with-github-pages
about: GitHub Pages official documentaion here.
- name: GitHub Actions Documentation
url: https://help.github.com/en/actions
about: GitHub Actions official documentaion here.

26
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: '11:00'
timezone: Japan
labels:
- dependencies
ignore:
- dependency-name: "@types/node"
versions:
- ">= 13.a, < 14"
- ">= 14.a, < 15"
commit-message:
prefix: deps
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- "CI/CD"
commit-message:
prefix: ci

29
.github/workflows/codeql.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: "Code Scanning"
on:
push:
branches:
- main
pull_request:
jobs:
CodeQL-Build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: javascript
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

46
.github/workflows/dev-image.yml vendored Normal file
View File

@@ -0,0 +1,46 @@
name: 'Dev Image CI'
on:
workflow_dispatch:
schedule:
- cron: '11 11 * * *'
push:
branches:
- main
paths:
- '.github/workflows/dev-image.yml'
- '.dockerignore'
- '.nvmrc'
- 'Dockerfile'
- 'Makefile'
- 'docker-compose.yml'
pull_request:
paths:
- '.github/workflows/dev-image.yml'
- '.dockerignore'
- '.nvmrc'
- 'Dockerfile'
- 'Makefile'
- 'docker-compose.yml'
jobs:
skipci:
runs-on: ubuntu-18.04
steps:
- run: echo "[skip ci] ${{ contains(github.event.head_commit.message, '[skip ci]') }}"
dev-image-test:
runs-on: ubuntu-18.04
if: contains(github.event.head_commit.message, '[skip ci]') == false
steps:
- uses: actions/checkout@v2.3.1
- name: Login to Packages
run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login 'docker.pkg.github.com' -u 'peaceiris' --password-stdin
- run: docker-compose pull --quiet
if: github.event_name == 'pull_request'
- run: make build
- run: docker images
- run: make ci
- run: make all
- run: docker-compose push
if: github.ref == 'refs/heads/main'

View File

@@ -1,44 +0,0 @@
name: docker image ci
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: build
env:
DOCKER_IMAGE: docker.pkg.github.com/${{ github.repository }}/action:latest
run: |
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} ||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
shellcheck:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: shellcheck
run: shellcheck ./entrypoint.sh
hadolint:
runs-on: macOS-10.14
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: hadolint
run: |
brew install hadolint
hadolint ./Dockerfile

View File

@@ -0,0 +1,14 @@
name: Check Pages Status
on: page_build
jobs:
pages-status-check:
runs-on: ubuntu-18.04
steps:
- name: check status
run: |
status = '${{ github.event.build.status }}'
errormsg = '${{ github.event.build.error.message }}'
assert status == 'built', 'Status: {status}\nError: {errormsg}'.format(status, errormsg)
shell: python

View File

@@ -0,0 +1,17 @@
name: Purge image cache
on:
schedule:
- cron: '54 18 * * */7'
workflow_dispatch:
jobs:
purge:
runs-on: ubuntu-18.04
steps:
- run: >
curl -sL https://github.com/${GITHUB_REPOSITORY} |
grep -oE '<img src="https?://camo.githubusercontent.com/[^"]+' |
sed -e 's/<img src="//' |
xargs -I % curl -sX PURGE %

36
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Release
on:
push:
tags:
- 'v3.*.*'
jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2.3.1
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- name: Install github/hub
run: |
export HUB_VERSION="2.14.2"
curl -fsSL https://github.com/github/hub/raw/8d91904208171b013f9a9d1175f4ab39068db047/script/get | bash -s "${HUB_VERSION}"
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME="${GITHUB_REF##refs/tags/}"
echo "See [CHANGELOG.md](https://github.com/${GITHUB_REPOSITORY}/blob/${TAG_NAME}/CHANGELOG.md) for more details." > ./release_notes.md
RELEASE_NAME="$(jq -r '.name' ./package.json)"
sed -i "1i${RELEASE_NAME} ${TAG_NAME}\n" ./release_notes.md
./bin/hub release create \
--draft \
--prerelease \
--file ./release_notes.md \
"${TAG_NAME}"

191
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,191 @@
name: 'Test'
on:
push:
branches:
- main
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- 'ubuntu-20.04'
- 'ubuntu-18.04'
- 'ubuntu-16.04'
- 'macos-latest'
- 'windows-latest'
steps:
- uses: actions/checkout@v2.3.1
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- name: Read .nvmrc
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/setup-node@v2.1.1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- run: npm i -g npm
- name: Dump version
run: |
node -v
npm --version
git --version
- run: npm ci
- name: npm audit
if: startsWith(matrix.os, 'ubuntu-18.04')
run: |
npm audit > ./audit.log || true
if ! [ "$(cat ./audit.log | wc -l)" = 1 ]; then
echo "::warning::$(cat ./audit.log)"
fi
rm ./audit.log
- name: Run prettier
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run format:check
- name: Run eslint
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run lint
- run: npm test
- name: Upload test coverage as artifact
uses: actions/upload-artifact@v2
with:
name: coverage-${{ matrix.os }}
path: coverage
- uses: codecov/codecov-action@v1.0.12
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run ncc
run: npm run build
- name: Remove lint-staged husky
if: github.ref == 'refs/heads/main'
run: |
npm uninstall lint-staged husky
git checkout package-lock.json package.json
- name: Setup mdBook
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-mdbook@v1.1.12
with:
mdbook-version: '0.3.7'
- name: Build site
if: github.ref == 'refs/heads/main'
working-directory: ./test_projects/mdbook
run: mdbook build
- name: Deploy
if: |
startsWith(matrix.os, 'ubuntu-18.04') &&
github.ref == 'refs/heads/main'
uses: ./
with:
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_branch: gh-pages
publish_dir: ./test_projects/mdbook/book
# external_repository: ''
allow_empty_commit: true
# keep_files: true
# force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
# commit_message: ${{ github.event.head_commit.message }}
cname: 'actions-gh-pages.peaceiris.com'
- name: Deploy
if: |
startsWith(matrix.os, 'ubuntu-16.04') &&
github.ref == 'refs/heads/main'
uses: ./
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages-ubuntu-16.04
publish_dir: ./test_projects/mdbook/book
# external_repository: ''
allow_empty_commit: true
keep_files: true
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
full_commit_message: ${{ github.event.head_commit.message }}
- name: Deploy
if: |
startsWith(matrix.os, 'macos') &&
github.ref == 'refs/heads/main'
uses: ./
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# github_token: ${{ secrets.GITHUB_TOKEN }}
# personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_branch: gh-pages-macos
publish_dir: ./test_projects/mdbook/book
# external_repository: ''
allow_empty_commit: true
# keep_files: true
# force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
# commit_message: ${{ github.event.head_commit.message }}
- name: Deploy
if: |
startsWith(matrix.os, 'windows') &&
github.ref == 'refs/heads/main'
uses: ./
with:
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_branch: gh-pages-windows
publish_dir: ./test_projects/mdbook/book
# external_repository: ''
allow_empty_commit: true
# keep_files: true
# force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
# commit_message: ${{ github.event.head_commit.message }}
- name: Deploy
if: |
startsWith(matrix.os, 'ubuntu-20.04') &&
github.ref == 'refs/heads/main'
uses: ./
with:
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages-ubuntu-20.04
publish_dir: ./test_projects/mdbook/book
# external_repository: ''
allow_empty_commit: true
# keep_files: true
# force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
# commit_message: ${{ github.event.head_commit.message }}

23
.github/workflows/update-major-tag.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Update major tag
on:
release:
types: [published]
jobs:
update:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2.3.1
- name: Update major tag
if: github.event.release.prerelease == false
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
export TAG_NAME="${GITHUB_REF##refs/tags/}"
export TAG_MAJOR="${TAG_NAME%%.*}"
git tag --force -a "${TAG_MAJOR}" -m "Release ${TAG_NAME}"
git push --force origin "${TAG_MAJOR}"

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
.DS_Store
coverage
.npm
.eslintcache
.env
node_modules

View File

@@ -1,2 +0,0 @@
ignored:
- DL3018

1
.npmrc Normal file
View File

@@ -0,0 +1 @@
engine-strict=true

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
12.18.3

11
.prettierrc.json Normal file
View File

@@ -0,0 +1,11 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
}

4
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,4 @@
{
"git.ignoreLimitWarning": true,
"deno.enable": false
}

1050
CHANGELOG.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,55 @@
FROM alpine:3.10.2
FROM ubuntu:18.04
RUN apk add --no-cache \
bash \
SHELL ["/bin/bash", "-l", "-c"]
RUN apt-get update && \
apt-get install -y --no-install-recommends software-properties-common gnupg && \
add-apt-repository ppa:git-core/ppa && \
apt-get update && \
apt-get install -y --no-install-recommends \
git \
openssh-client \
ca-certificates
curl \
wget \
ssh \
vim && \
apt-get autoclean && \
apt-get clean && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
WORKDIR /node
ARG NODE_VERSION
RUN curl -o nodejs.deb "https://deb.nodesource.com/node_${NODE_VERSION%%.*}.x/pool/main/n/nodejs/nodejs_${NODE_VERSION}-1nodesource1_amd64.deb" && \
apt-get update && \
apt-get install -y --no-install-recommends ./nodejs.deb && \
npm i -g npm && \
curl -sL https://deb.nodesource.com/test | bash - && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /node
WORKDIR /repo
ENV DEBIAN_FRONTEND="noninteractive"
ENV LANG="C.UTF-8"
ENV CI="true"
ENV ImageVersion="20200717.1"
ENV GITHUB_SERVER_URL="https://github.com"
ENV GITHUB_API_URL="https://api.github.com"
ENV GITHUB_GRAPHQL_URL="https://api.github.com/graphql"
ENV GITHUB_REPOSITORY_OWNER="peaceiris"
ENV GITHUB_ACTIONS="true"
ENV GITHUB_ACTOR="peaceiris"
ENV GITHUB_REPOSITORY="actions/pages"
ENV RUNNER_OS="Linux"
ENV RUNNER_TOOL_CACHE="/opt/hostedtoolcache"
ENV RUNNER_USER="runner"
ENV RUNNER_TEMP="/home/runner/work/_temp"
ENV RUNNER_WORKSPACE="/home/runner/work/pages"
RUN echo "node version: $(node -v)" && \
echo "npm version: $(npm -v)" && \
git --version && \
git config --global init.defaultBranch main && \
git config --global init.defaultBranch
CMD [ "bash" ]

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019 Shohei Ueda (peaceiris)
Copyright (c) 2020 Shohei Ueda (peaceiris)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
IMAGE_NAME := docker.pkg.github.com/peaceiris/actions-gh-pages/dev:latest
NODE_VERSION := $(shell cat ./.nvmrc)
.PHONY: build
build:
docker-compose build --build-arg NODE_VERSION=$(NODE_VERSION)
.PHONY: run
run:
docker-compose run --rm dev bash
.PHONY: ci
ci:
docker-compose run --rm -T dev npm ci
.PHONY: test
test:
docker-compose run --rm -T dev npm test
.PHONY: all
all:
docker-compose run --rm -T dev npm run all

1280
README.md

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,187 @@
// import * as main from '../src/main';
import {Inputs} from '../src/interfaces';
import {showInputs, getInputs} from '../src/get-inputs';
import os from 'os';
import fs from 'fs';
import yaml from 'js-yaml';
beforeEach(() => {
jest.resetModules();
process.stdout.write = jest.fn();
const doc = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
Object.keys(doc.inputs).forEach(name => {
const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
process.env[envVar] = doc.inputs[name]['default'];
});
});
afterEach(() => {
const doc = yaml.safeLoad(fs.readFileSync(__dirname + '/../action.yml', 'utf8'));
Object.keys(doc.inputs).forEach(name => {
const envVar = `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
console.debug(`delete ${envVar}\t${process.env[envVar]}`);
delete process.env[envVar];
});
});
// Assert that process.stdout.write calls called only with the given arguments.
// cf. https://github.com/actions/toolkit/blob/8b0300129f08728419263b016de8630f1d426d5f/packages/core/__tests__/core.test.ts
function assertWriteCalls(calls: string[]): void {
expect(process.stdout.write).toHaveBeenCalledTimes(calls.length);
for (let i = 0; i < calls.length; i++) {
expect(process.stdout.write).toHaveBeenNthCalledWith(i + 1, calls[i]);
}
}
function getInputsLog(authMethod: string, inps: Inputs): string {
return `\
[INFO] ${authMethod}: true
[INFO] PublishBranch: ${inps.PublishBranch}
[INFO] PublishDir: ${inps.PublishDir}
[INFO] DestinationDir: ${inps.DestinationDir}
[INFO] ExternalRepository: ${inps.ExternalRepository}
[INFO] AllowEmptyCommit: ${inps.AllowEmptyCommit}
[INFO] KeepFiles: ${inps.KeepFiles}
[INFO] ForceOrphan: ${inps.ForceOrphan}
[INFO] UserName: ${inps.UserName}
[INFO] UserEmail: ${inps.UserEmail}
[INFO] CommitMessage: ${inps.CommitMessage}
[INFO] FullCommitMessage: ${inps.FullCommitMessage}
[INFO] TagName: ${inps.TagName}
[INFO] TagMessage: ${inps.TagMessage}
[INFO] EnableJekyll (DisableNoJekyll): ${inps.DisableNoJekyll}
[INFO] CNAME: ${inps.CNAME}
[INFO] ExcludeAssets ${inps.ExcludeAssets}
`;
}
describe('showInputs()', () => {
// eslint-disable-next-line jest/expect-expect
test('print all inputs DeployKey', () => {
process.env['INPUT_DEPLOY_KEY'] = 'test_deploy_key';
const inps: Inputs = getInputs();
showInputs(inps);
const authMethod = 'DeployKey';
const test = getInputsLog(authMethod, inps);
assertWriteCalls([`${test}${os.EOL}`]);
});
// eslint-disable-next-line jest/expect-expect
test('print all inputs GithubToken', () => {
delete process.env['INPUT_DEPLOY_KEY'];
process.env['INPUT_GITHUB_TOKEN'] = 'test_github_token';
const inps: Inputs = getInputs();
showInputs(inps);
const authMethod = 'GithubToken';
const test = getInputsLog(authMethod, inps);
assertWriteCalls([`${test}${os.EOL}`]);
});
// eslint-disable-next-line jest/expect-expect
test('print all inputs PersonalToken', () => {
delete process.env['INPUT_DEPLOY_KEY'];
delete process.env['INPUT_GITHUB_TOKEN'];
process.env['INPUT_PERSONAL_TOKEN'] = 'test_personal_token';
const inps: Inputs = getInputs();
showInputs(inps);
const authMethod = 'PersonalToken';
const test = getInputsLog(authMethod, inps);
assertWriteCalls([`${test}${os.EOL}`]);
});
});
describe('getInputs()', () => {
test('get default inputs', () => {
process.env['INPUT_DEPLOY_KEY'] = 'test_deploy_key';
const inps: Inputs = getInputs();
expect(inps.DeployKey).toMatch('test_deploy_key');
expect(inps.GithubToken).toMatch('');
expect(inps.PersonalToken).toMatch('');
expect(inps.PublishBranch).toMatch('gh-pages');
expect(inps.PublishDir).toMatch('public');
expect(inps.DestinationDir).toMatch('');
expect(inps.ExternalRepository).toMatch('');
expect(inps.AllowEmptyCommit).toBe(false);
expect(inps.KeepFiles).toBe(false);
expect(inps.ForceOrphan).toBe(false);
expect(inps.UserName).toMatch('');
expect(inps.UserEmail).toMatch('');
expect(inps.CommitMessage).toMatch('');
expect(inps.FullCommitMessage).toMatch('');
expect(inps.TagName).toMatch('');
expect(inps.TagMessage).toMatch('');
expect(inps.DisableNoJekyll).toBe(false);
expect(inps.CNAME).toMatch('');
expect(inps.ExcludeAssets).toMatch('.github');
});
test('get spec inputs', () => {
// process.env['INPUT_DEPLOY_KEY'] = 'test_deploy_key';
process.env['INPUT_GITHUB_TOKEN'] = 'test_github_token';
process.env['INPUT_PERSONAL_TOKEN'] = 'test_personal_token';
process.env['INPUT_PUBLISH_BRANCH'] = 'master';
process.env['INPUT_PUBLISH_DIR'] = 'out';
process.env['INPUT_DESTINATION_DIR'] = 'subdir';
process.env['INPUT_EXTERNAL_REPOSITORY'] = 'user/repo';
process.env['INPUT_ALLOW_EMPTY_COMMIT'] = 'true';
process.env['INPUT_KEEP_FILES'] = 'true';
process.env['INPUT_FORCE_ORPHAN'] = 'true';
process.env['INPUT_USER_NAME'] = 'username';
process.env['INPUT_USER_EMAIL'] = 'github@github.com';
process.env['INPUT_COMMIT_MESSAGE'] = 'feat: Add new feature';
process.env['INPUT_FULL_COMMIT_MESSAGE'] = 'feat: Add new feature';
process.env['INPUT_TAG_NAME'] = 'deploy-v1.2.3';
process.env['INPUT_TAG_MESSAGE'] = 'Deployment v1.2.3';
process.env['INPUT_DISABLE_NOJEKYLL'] = 'true';
process.env['INPUT_CNAME'] = 'github.com';
process.env['INPUT_EXCLUDE_ASSETS'] = '.github';
const inps: Inputs = getInputs();
expect(inps.DeployKey).toMatch('');
expect(inps.GithubToken).toMatch('test_github_token');
expect(inps.PersonalToken).toMatch('test_personal_token');
expect(inps.PublishBranch).toMatch('master');
expect(inps.PublishDir).toMatch('out');
expect(inps.DestinationDir).toMatch('subdir');
expect(inps.ExternalRepository).toMatch('user/repo');
expect(inps.AllowEmptyCommit).toBe(true);
expect(inps.KeepFiles).toBe(true);
expect(inps.ForceOrphan).toBe(true);
expect(inps.UserName).toMatch('username');
expect(inps.UserEmail).toMatch('github@github.com');
expect(inps.CommitMessage).toMatch('feat: Add new feature');
expect(inps.FullCommitMessage).toMatch('feat: Add new feature');
expect(inps.TagName).toMatch('deploy-v1.2.3');
expect(inps.TagMessage).toMatch('Deployment v1.2.3');
expect(inps.DisableNoJekyll).toBe(true);
expect(inps.CNAME).toMatch('github.com');
expect(inps.ExcludeAssets).toMatch('.github');
});
test('get spec inputs enable_jekyll', () => {
process.env['INPUT_ENABLE_JEKYLL'] = 'true';
const inps: Inputs = getInputs();
expect(inps.DisableNoJekyll).toBe(true);
});
test('throw error enable_jekyll or disable_nojekyll', () => {
process.env['INPUT_DEPLOY_KEY'] = 'test_deploy_key';
process.env['INPUT_ENABLE_JEKYLL'] = 'true';
process.env['INPUT_DISABLE_NOJEKYLL'] = 'true';
expect(() => {
getInputs();
}).toThrowError('Use either of enable_jekyll or disable_nojekyll');
});
});

204
__tests__/git-utils.test.ts Normal file
View File

@@ -0,0 +1,204 @@
import {
setRepo,
getUserName,
getUserEmail,
setCommitAuthor,
getCommitMessage
} from '../src/git-utils';
import {getInputs} from '../src/get-inputs';
import {Inputs} from '../src/interfaces';
import {getWorkDirName, createDir} from '../src/utils';
import {CmdResult} from '../src/interfaces';
import * as exec from '@actions/exec';
beforeEach(() => {
jest.resetModules();
process.env['GITHUB_ACTOR'] = 'default-octocat';
process.env['GITHUB_REPOSITORY'] = 'owner/repo';
});
afterEach(() => {
delete process.env['GITHUB_ACTOR'];
delete process.env['GITHUB_REPOSITORY'];
});
describe('setRepo()', () => {
test('throw error destination_dir should be a relative path', async () => {
process.env['INPUT_GITHUB_TOKEN'] = 'test_github_token';
process.env['INPUT_PUBLISH_BRANCH'] = 'gh-pages';
process.env['INPUT_PUBLISH_DIR'] = 'public';
process.env['INPUT_DESTINATION_DIR'] = '/subdir';
// process.env['INPUT_EXTERNAL_REPOSITORY'] = 'user/repo';
// process.env['INPUT_ALLOW_EMPTY_COMMIT'] = 'true';
// process.env['INPUT_KEEP_FILES'] = 'true';
// process.env['INPUT_FORCE_ORPHAN'] = 'true';
// process.env['INPUT_USER_NAME'] = 'username';
// process.env['INPUT_USER_EMAIL'] = 'github@github.com';
// process.env['INPUT_COMMIT_MESSAGE'] = 'feat: Add new feature';
// process.env['INPUT_FULL_COMMIT_MESSAGE'] = 'feat: Add new feature';
// process.env['INPUT_TAG_NAME'] = 'deploy-v1.2.3';
// process.env['INPUT_TAG_MESSAGE'] = 'Deployment v1.2.3';
// process.env['INPUT_DISABLE_NOJEKYLL'] = 'true';
// process.env['INPUT_CNAME'] = 'github.com';
process.env['INPUT_EXCLUDE_ASSETS'] = '.github';
const inps: Inputs = getInputs();
const remoteURL = 'https://x-access-token:pat@github.com/actions/pages.git';
const date = new Date();
const unixTime = date.getTime();
const workDir = await getWorkDirName(`${unixTime}`);
await expect(setRepo(inps, remoteURL, workDir)).rejects.toThrowError(
'destination_dir should be a relative path'
);
});
});
describe('getUserName()', () => {
test('get default git user name', () => {
const userName = '';
const test = getUserName(userName);
expect(test).toMatch('default-octocat');
});
test('get custom git user name', () => {
const userName = 'custom-octocat';
const test = getUserName(userName);
expect(test).toMatch(userName);
});
});
describe('getUserEmail()', () => {
test('get default git user email', () => {
const userEmail = '';
const test = getUserEmail(userEmail);
expect(test).toMatch('default-octocat@users.noreply.github.com');
});
test('get custom git user email', () => {
const userEmail = 'custom-octocat@github.com';
const test = getUserEmail(userEmail);
expect(test).toMatch(userEmail);
});
});
describe('setCommitAuthor()', () => {
let workDirName = '';
(async (): Promise<void> => {
const date = new Date();
const unixTime = date.getTime();
workDirName = await getWorkDirName(`${unixTime}`);
})();
beforeEach(async () => {
await createDir(workDirName);
process.chdir(workDirName);
await exec.exec('git', ['init']);
});
test('get default commit author', async () => {
const userName = '';
const userEmail = '';
const result: CmdResult = {
exitcode: 0,
output: ''
};
const options = {
listeners: {
stdout: (data: Buffer): void => {
result.output += data.toString();
}
}
};
await setCommitAuthor(userName, userEmail);
result.exitcode = await exec.exec('git', ['config', 'user.name'], options);
expect(result.output).toMatch('default-octocat');
result.exitcode = await exec.exec('git', ['config', 'user.email'], options);
expect(result.output).toMatch('default-octocat@users.noreply.github.com');
});
test('get custom commit author', async () => {
const userName = 'custom-octocat';
const userEmail = 'custom-octocat@github.com';
const result: CmdResult = {
exitcode: 0,
output: ''
};
const options = {
listeners: {
stdout: (data: Buffer): void => {
result.output += data.toString();
}
}
};
await setCommitAuthor(userName, userEmail);
result.exitcode = await exec.exec('git', ['config', 'user.name'], options);
expect(result.output).toMatch(userName);
result.exitcode = await exec.exec('git', ['config', 'user.email'], options);
expect(result.output).toMatch(userEmail);
});
test('throw error user_email is undefined', async () => {
const userName = 'custom-octocat';
const userEmail = '';
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrowError(
'user_email is undefined'
);
});
test('throw error user_name is undefined', async () => {
const userName = '';
const userEmail = 'custom-octocat@github.com';
await expect(setCommitAuthor(userName, userEmail)).rejects.toThrowError(
'user_name is undefined'
);
});
});
describe('getCommitMessage()', () => {
test('get default message', () => {
const test = getCommitMessage('', '', '', 'actions/pages', 'commit_hash');
expect(test).toMatch('deploy: commit_hash');
});
test('get default message for external repository', () => {
const test = getCommitMessage(
'',
'',
'actions/actions.github.io',
'actions/pages',
'commit_hash'
);
expect(test).toMatch('deploy: actions/pages@commit_hash');
});
test('get custom message', () => {
const test = getCommitMessage('Custom msg', '', '', 'actions/pages', 'commit_hash');
expect(test).toMatch('Custom msg commit_hash');
});
test('get custom message for external repository', () => {
const test = getCommitMessage(
'Custom msg',
'',
'actions/actions.github.io',
'actions/pages',
'commit_hash'
);
expect(test).toMatch('Custom msg actions/pages@commit_hash');
});
test('get full custom message', () => {
const test = getCommitMessage('', 'Full custom msg', '', 'actions/pages', 'commit_hash');
expect(test).toMatch('Full custom msg');
});
test('get full custom message for external repository', () => {
const test = getCommitMessage(
'',
'Full custom msg',
'actions/actions.github.io',
'actions/pages',
'commit_hash'
);
expect(test).toMatch('Full custom msg');
});
});

View File

@@ -0,0 +1,118 @@
import {getPublishRepo, setPersonalToken, setGithubToken} from '../src/set-tokens';
beforeEach(() => {
jest.resetModules();
});
// afterEach(() => {
// });
describe('getPublishRepo()', () => {
test('return repository name', () => {
const test = getPublishRepo('', 'owner', 'repo');
expect(test).toMatch('owner/repo');
});
test('return external repository name', () => {
const test = getPublishRepo('extOwner/extRepo', 'owner', 'repo');
expect(test).toMatch('extOwner/extRepo');
});
});
describe('setGithubToken()', () => {
test('return remote url with GITHUB_TOKEN gh-pages', () => {
const expected = 'https://x-access-token:GITHUB_TOKEN@github.com/owner/repo.git';
const test = setGithubToken(
'GITHUB_TOKEN',
'owner/repo',
'gh-pages',
'',
'refs/heads/master',
'push'
);
expect(test).toMatch(expected);
});
test('return remote url with GITHUB_TOKEN master', () => {
const expected = 'https://x-access-token:GITHUB_TOKEN@github.com/owner/repo.git';
const test = setGithubToken(
'GITHUB_TOKEN',
'owner/repo',
'master',
'',
'refs/heads/source',
'push'
);
expect(test).toMatch(expected);
});
test('return remote url with GITHUB_TOKEN gh-pages (RegExp)', () => {
const expected = 'https://x-access-token:GITHUB_TOKEN@github.com/owner/repo.git';
const test = setGithubToken(
'GITHUB_TOKEN',
'owner/repo',
'gh-pages',
'',
'refs/heads/gh-pages-base',
'push'
);
expect(test).toMatch(expected);
});
test('throw error gh-pages-base to gh-pages-base (RegExp)', () => {
expect(() => {
setGithubToken(
'GITHUB_TOKEN',
'owner/repo',
'gh-pages-base',
'',
'refs/heads/gh-pages-base',
'push'
);
}).toThrowError('You deploy from gh-pages-base to gh-pages-base');
});
test('throw error master to master', () => {
expect(() => {
setGithubToken('GITHUB_TOKEN', 'owner/repo', 'master', '', 'refs/heads/master', 'push');
}).toThrowError('You deploy from master to master');
});
test('throw error external repository with GITHUB_TOKEN', () => {
expect(() => {
setGithubToken(
'GITHUB_TOKEN',
'owner/repo',
'gh-pages',
'extOwner/extRepo',
'refs/heads/master',
'push'
);
}).toThrowError(`\
The generated GITHUB_TOKEN (github_token) does not support to push to an external repository.
Use deploy_key or personal_token.
`);
});
test('return remote url with GITHUB_TOKEN pull_request', () => {
const expected = 'https://x-access-token:GITHUB_TOKEN@github.com/owner/repo.git';
const test = setGithubToken(
'GITHUB_TOKEN',
'owner/repo',
'gh-pages',
'',
'refs/pull/29/merge',
'pull_request'
);
expect(test).toMatch(expected);
});
});
describe('setPersonalToken()', () => {
test('return remote url with personal access token', () => {
const expected = 'https://x-access-token:pat@github.com/owner/repo.git';
const test = setPersonalToken('pat', 'owner/repo');
expect(test).toMatch(expected);
});
});

183
__tests__/utils.test.ts Normal file
View File

@@ -0,0 +1,183 @@
import path from 'path';
import fs from 'fs';
import {
getHomeDir,
getWorkDirName,
createDir,
addNoJekyll,
addCNAME,
skipOnFork
} from '../src/utils';
beforeEach(() => {
jest.resetModules();
});
// afterEach(() => {
// });
async function getTime(): Promise<string> {
const date = new Date();
const unixTime = date.getTime();
return `${unixTime}`;
}
describe('getHomeDir()', () => {
test('get home directory name', async () => {
let test = '';
if (process.platform === 'win32') {
test = 'C:\\Users\\runneradmin';
} else {
test = `${process.env.HOME}`;
}
const expected = await getHomeDir();
expect(test).toMatch(expected);
});
});
describe('getWorkDirName()', () => {
test('get work directory name', async () => {
let home = '';
if (process.platform === 'win32') {
home = 'C:\\Users\\runneradmin';
} else {
home = `${process.env.HOME}`;
}
const unixTime = await getTime();
const expected = path.join(home, `actions_github_pages_${unixTime}`);
const test = await getWorkDirName(`${unixTime}`);
expect(test).toMatch(expected);
});
});
describe('createDir()', () => {
test('create a directory', async () => {
const unixTime = await getTime();
const workDirName = await getWorkDirName(`${unixTime}`);
await createDir(workDirName);
const test = fs.existsSync(workDirName);
expect(test).toBe(true);
});
});
async function getWorkDir(): Promise<string> {
const unixTime = await getTime();
let workDir = '';
workDir = await getWorkDirName(`${unixTime}`);
await createDir(workDir);
return workDir;
}
describe('addNoJekyll()', () => {
test('add .nojekyll', async () => {
let workDir = '';
(async (): Promise<void> => {
workDir = await getWorkDir();
})();
const filepath = path.join(workDir, '.nojekyll');
await addNoJekyll(workDir, false);
const test = fs.existsSync(filepath);
expect(test).toBe(true);
fs.unlinkSync(filepath);
});
test('.nojekyll already exists', async () => {
let workDir = '';
(async (): Promise<void> => {
workDir = await getWorkDir();
})();
const filepath = path.join(workDir, '.nojekyll');
fs.closeSync(fs.openSync(filepath, 'w'));
await addNoJekyll(workDir, false);
const test = fs.existsSync(filepath);
expect(test).toBe(true);
fs.unlinkSync(filepath);
});
test('not add .nojekyll disable_nojekyll', async () => {
let workDir = '';
(async (): Promise<void> => {
workDir = await getWorkDir();
})();
const filepath = path.join(workDir, '.nojekyll');
await addNoJekyll(workDir, true);
const test = fs.existsSync(filepath);
expect(test).toBe(false);
});
});
describe('addCNAME()', () => {
test('add CNAME', async () => {
let workDir = '';
(async (): Promise<void> => {
workDir = await getWorkDir();
})();
const filepath = path.join(workDir, 'CNAME');
await addCNAME(workDir, 'github.com');
const test = fs.readFileSync(filepath, 'utf8');
expect(test).toMatch('github.com');
fs.unlinkSync(filepath);
});
test('do nothing', async () => {
let workDir = '';
(async (): Promise<void> => {
workDir = await getWorkDir();
})();
const filepath = path.join(workDir, 'CNAME');
await addCNAME(workDir, '');
const test = fs.existsSync(filepath);
expect(test).toBe(false);
});
test('CNAME already exists', async () => {
let workDir = '';
(async (): Promise<void> => {
workDir = await getWorkDir();
})();
const filepath = path.join(workDir, 'CNAME');
await addCNAME(workDir, 'github.io');
await addCNAME(workDir, 'github.com');
const test = fs.readFileSync(filepath, 'utf8');
expect(test).toMatch('github.io');
fs.unlinkSync(filepath);
});
});
describe('skipOnFork()', () => {
test('return false on upstream', async () => {
const test = await skipOnFork(false, 'token', '', '');
expect(test).toBeFalsy();
});
test('return false on fork with github_token', async () => {
const test = await skipOnFork(true, 'token', '', '');
expect(test).toBeFalsy();
});
test('return false on fork with deploy_key', async () => {
const test = await skipOnFork(true, '', 'deploy_key', '');
expect(test).toBeFalsy();
});
test('return false on fork with personal_token', async () => {
const test = await skipOnFork(true, '', '', 'personal_token');
expect(test).toBeFalsy();
});
test('return true on fork with no tokens', async () => {
const test = await skipOnFork(true, '', '', '');
expect(test).toBeTruthy();
});
});

View File

@@ -1,18 +1,79 @@
name: 'Deploy action for GitHub Pages'
name: 'GitHub Pages action'
description: 'GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.'
author: 'peaceiris'
runs:
using: 'docker'
image: 'Dockerfile'
using: 'node12'
main: 'lib/index.js'
branding:
icon: 'upload-cloud'
color: 'blue'
inputs:
emptyCommits:
deploy_key:
description: 'Set a SSH private key from repository secret value for pushing to the remote branch.'
required: false
github_token:
description: 'Set a generated GITHUB_TOKEN for pushing to the remote branch.'
required: false
personal_token:
description: 'Set a personal access token for pushing to the remote branch.'
required: false
publish_branch:
description: 'Set a target branch for deployment.'
required: false
default: 'gh-pages'
publish_dir:
description: 'Set an input directory for deployment.'
required: false
default: 'public'
destination_dir:
description: 'Set an destination subdirectory for deployment.'
required: false
default: ''
external_repository:
description: 'Set an external repository (owner/repo).'
required: false
allow_empty_commit:
description: 'If empty commits should be made to the publication branch'
required: false
default: 'true'
keepFiles:
default: 'false'
keep_files:
description: 'If existing files in the publish branch should be not removed before deploying'
required: false
default: 'false'
force_orphan:
description: 'Keep only the latest commit on a GitHub Pages branch'
required: false
default: 'false'
user_name:
description: 'Set Git user.name'
required: false
user_email:
description: 'Set Git user.email'
required: false
commit_message:
description: 'Set a custom commit message with a triggered commit hash'
required: false
full_commit_message:
description: 'Set a custom full commit message without a triggered commit hash'
required: false
tag_name:
description: 'Set tag name'
required: false
tag_message:
description: 'Set tag message'
required: false
enable_jekyll:
description: 'Enable the GitHub Pages built-in Jekyll'
required: false
default: 'false'
disable_nojekyll:
description: 'An alias for enable_jekyll to disable adding .nojekyll file to master or gh-pages branches'
required: false
default: 'false'
cname:
description: 'Set custom domain'
required: false
exclude_assets:
description: 'Set files or directories to exclude from a publish directory.'
required: false
default: '.github'

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
version: '3.2'
services:
dev:
image: 'docker.pkg.github.com/peaceiris/actions-gh-pages/dev:latest'
build:
context: .
cache_from:
- 'docker.pkg.github.com/peaceiris/actions-gh-pages/dev:latest'
container_name: peaceiris_actions_github_pages
volumes:
- ${PWD}:/repo
stdin_open: true
tty: true
command:
- bash

View File

@@ -1,114 +0,0 @@
#!/bin/bash
set -e
# set -ex
function print_error() {
echo -e "\e[31mERROR: ${1}\e[m"
}
function print_info() {
echo -e "\e[36mINFO: ${1}\e[m"
}
function skip() {
print_info "No changes detected, skipping deployment"
exit 0
}
# check values
if [ -n "${EXTERNAL_REPOSITORY}" ]; then
PUBLISH_REPOSITORY=${EXTERNAL_REPOSITORY}
else
PUBLISH_REPOSITORY=${GITHUB_REPOSITORY}
fi
print_info "Deploy to ${PUBLISH_REPOSITORY}"
if [ -n "${ACTIONS_DEPLOY_KEY}" ]; then
print_info "setup with ACTIONS_DEPLOY_KEY"
if [ -n "${SCRIPT_MODE}" ]; then
print_info "run as SCRIPT_MODE"
SSH_DIR="${HOME}/.ssh"
else
SSH_DIR="/root/.ssh"
fi
mkdir "${SSH_DIR}"
ssh-keyscan -t rsa github.com > "${SSH_DIR}/known_hosts"
echo "${ACTIONS_DEPLOY_KEY}" > "${SSH_DIR}/id_rsa"
chmod 400 "${SSH_DIR}/id_rsa"
remote_repo="git@github.com:${PUBLISH_REPOSITORY}.git"
elif [ -n "${PERSONAL_TOKEN}" ]; then
print_info "setup with PERSONAL_TOKEN"
remote_repo="https://x-access-token:${PERSONAL_TOKEN}@github.com/${PUBLISH_REPOSITORY}.git"
elif [ -n "${GITHUB_TOKEN}" ]; then
print_info "setup with GITHUB_TOKEN"
print_error "GITHUB_TOKEN works only private repo, See #9"
if [ -n "${EXTERNAL_REPOSITORY}" ]; then
print_error "can not use GITHUB_TOKEN to deploy to a external repository"
exit 1
fi
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${PUBLISH_REPOSITORY}.git"
else
print_error "not found ACTIONS_DEPLOY_KEY, PERSONAL_TOKEN, or GITHUB_TOKEN"
exit 1
fi
if [ -z "${PUBLISH_BRANCH}" ]; then
print_error "not found PUBLISH_BRANCH"
exit 1
fi
if [ -z "${PUBLISH_DIR}" ]; then
print_error "not found PUBLISH_DIR"
exit 1
fi
remote_branch="${PUBLISH_BRANCH}"
local_dir="${HOME}/ghpages_${RANDOM}"
if git clone --depth=1 --single-branch --branch "${remote_branch}" "${remote_repo}" "${local_dir}"; then
cd "${local_dir}"
if [[ ${INPUT_KEEPFILES} == "true" ]]; then
print_info "Keeping existing files: ${INPUT_KEEPFILES}"
else
git rm -r --ignore-unmatch '*'
fi
find "${GITHUB_WORKSPACE}/${PUBLISH_DIR}" -maxdepth 1 | \
tail -n +2 | \
xargs -I % cp -rf % "${local_dir}/"
else
cd "${PUBLISH_DIR}"
git init
git checkout --orphan "${remote_branch}"
fi
# push to publishing branch
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote rm origin || true
git remote add origin "${remote_repo}"
git add --all
print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
git commit -m "${COMMIT_MESSAGE}" || skip
else
git commit --allow-empty -m "${COMMIT_MESSAGE}"
fi
git push origin "${remote_branch}"
print_info "${GITHUB_SHA} was successfully deployed"

BIN
images/commit_message.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
images/log_overview.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
images/log_success.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
images/settings_select.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
images/user_repo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

11
jest.config.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
};

1
lib/index.js Normal file

File diff suppressed because one or more lines are too long

9386
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

84
package.json Normal file
View File

@@ -0,0 +1,84 @@
{
"name": "actions-github-pages",
"version": "3.7.0-8",
"description": "GitHub Actions for GitHub Pages",
"main": "lib/index.js",
"engines": {
"node": ">=12.16.3",
"npm": ">=6.14.4"
},
"scripts": {
"all": "npm run format && npm run lint && npm test",
"lint": "eslint ./{src,__tests__}/**/*.ts",
"lint:fix": "eslint --fix ./{src,__tests__}/**/*.ts",
"test": "jest --coverage --verbose --detectOpenHandles",
"build": "ncc build ./src/index.ts -o lib --minify",
"tsc": "tsc",
"format": "prettier --write **/*.ts",
"format:check": "prettier --check **/*.ts",
"release": "standard-version",
"update-deps": "(git diff 'HEAD@{1}' --name-only | grep 'package-lock.json' > /dev/null) && npm ci || :"
},
"husky": {
"skipCI": true,
"hooks": {
"pre-commit": "lint-staged",
"post-merge": "npm run update-deps; git remote prune origin"
}
},
"lint-staged": {
"{src,__tests__}/**/*.ts": [
"prettier --check",
"eslint"
],
"README.md": [
"npx doctoc@1.4.0 --github"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/peaceiris/actions-gh-pages.git"
},
"keywords": [
"GitHub Actions",
"Actions",
"JavaScript Action",
"TypeScript Action",
"GitHub Pages",
"gh-pages"
],
"author": "peaceiris",
"license": "MIT",
"bugs": {
"url": "https://github.com/peaceiris/actions-gh-pages/issues"
},
"homepage": "https://github.com/peaceiris/actions-gh-pages#readme",
"dependencies": {
"@actions/core": "^1.2.4",
"@actions/exec": "^1.0.4",
"@actions/github": "^4.0.0",
"@actions/glob": "^0.1.0",
"@actions/io": "^1.0.2"
},
"devDependencies": {
"@types/jest": "^26.0.9",
"@types/js-yaml": "^3.12.4",
"@types/node": "~12",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@zeit/ncc": "^0.22.3",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.2.5",
"jest": "^25.5.4",
"jest-circus": "^26.2.2",
"js-yaml": "^3.14.0",
"lint-staged": "^10.2.11",
"prettier": "2.0.5",
"standard-version": "^8.0.2",
"ts-jest": "^25.5.1",
"typescript": "^3.9.7"
}
}

70
release.sh Executable file
View File

@@ -0,0 +1,70 @@
#!/usr/bin/env bash
# fail on unset variables and command errors
set -eu -o pipefail # -x: is for debugging
DEFAULT_BRANCH="main"
CURRENT_BRANCH="$(git branch --show-current)"
if [ "${CURRENT_BRANCH}" != "${DEFAULT_BRANCH}" ]; then
echo "$0: Current branch ${CURRENT_BRANCH} is not ${DEFAULT_BRANCH}, continue? (y/n)"
read -r res
if [ "${res}" = "n" ]; then
echo "$0: Stop script"
exit 0
fi
fi
PRERELEASE_TYPE_LIST="prerelease prepatch preminor premajor"
if [ "${CURRENT_BRANCH}" != "${DEFAULT_BRANCH}" ]; then
RELEASE_TYPE_LIST="${PRERELEASE_TYPE_LIST}"
else
RELEASE_TYPE_LIST="${PRERELEASE_TYPE_LIST} patch minor major"
fi
if command -v fzf; then
RELEASE_TYPE=$(echo "${RELEASE_TYPE_LIST}" | tr ' ' '\n' | fzf --layout=reverse)
else
select sel in ${RELEASE_TYPE_LIST}; do
RELEASE_TYPE="${sel}"
break
done
fi
echo "$0: Create ${RELEASE_TYPE} release, continue? (y/n)"
read -r res
if [ "${res}" = "n" ]; then
echo "$0: Stop script"
exit 0
fi
git fetch origin
if [ "${CURRENT_BRANCH}" != "${DEFAULT_BRANCH}" ]; then
git pull origin "${CURRENT_BRANCH}"
else
git pull origin ${DEFAULT_BRANCH}
git tag -d v3 || true
git pull origin --tags
fi
npm ci
mkdir ./lib
npm run build
git add ./lib/index.js
git commit -m "chore(release): Add build assets"
npm run release -- --release-as "${RELEASE_TYPE}" --preset eslint
git rm ./lib/index.js
rm -rf ./lib
git commit -m "chore(release): Remove build assets [skip ci]"
if [ "${CURRENT_BRANCH}" != "${DEFAULT_BRANCH}" ]; then
git push origin "${CURRENT_BRANCH}"
else
git push origin ${DEFAULT_BRANCH}
fi
TAG_NAME="v$(jq -r '.version' ./package.json)"
git push origin "${TAG_NAME}"

74
src/get-inputs.ts Normal file
View File

@@ -0,0 +1,74 @@
import * as core from '@actions/core';
import {Inputs} from './interfaces';
export function showInputs(inps: Inputs): void {
let authMethod = '';
if (inps.DeployKey) {
authMethod = 'DeployKey';
} else if (inps.GithubToken) {
authMethod = 'GithubToken';
} else if (inps.PersonalToken) {
authMethod = 'PersonalToken';
}
core.info(`\
[INFO] ${authMethod}: true
[INFO] PublishBranch: ${inps.PublishBranch}
[INFO] PublishDir: ${inps.PublishDir}
[INFO] DestinationDir: ${inps.DestinationDir}
[INFO] ExternalRepository: ${inps.ExternalRepository}
[INFO] AllowEmptyCommit: ${inps.AllowEmptyCommit}
[INFO] KeepFiles: ${inps.KeepFiles}
[INFO] ForceOrphan: ${inps.ForceOrphan}
[INFO] UserName: ${inps.UserName}
[INFO] UserEmail: ${inps.UserEmail}
[INFO] CommitMessage: ${inps.CommitMessage}
[INFO] FullCommitMessage: ${inps.FullCommitMessage}
[INFO] TagName: ${inps.TagName}
[INFO] TagMessage: ${inps.TagMessage}
[INFO] EnableJekyll (DisableNoJekyll): ${inps.DisableNoJekyll}
[INFO] CNAME: ${inps.CNAME}
[INFO] ExcludeAssets ${inps.ExcludeAssets}
`);
}
export function getInputs(): Inputs {
let useBuiltinJekyll = false;
const enableJekyll: boolean =
(core.getInput('enable_jekyll') || 'false').toUpperCase() === 'TRUE';
const disableNoJekyll: boolean =
(core.getInput('disable_nojekyll') || 'false').toUpperCase() === 'TRUE';
if (enableJekyll && disableNoJekyll) {
throw new Error(`Use either of enable_jekyll or disable_nojekyll`);
} else if (enableJekyll) {
useBuiltinJekyll = true;
} else if (disableNoJekyll) {
useBuiltinJekyll = true;
}
const inps: Inputs = {
DeployKey: core.getInput('deploy_key'),
GithubToken: core.getInput('github_token'),
PersonalToken: core.getInput('personal_token'),
PublishBranch: core.getInput('publish_branch'),
PublishDir: core.getInput('publish_dir'),
DestinationDir: core.getInput('destination_dir'),
ExternalRepository: core.getInput('external_repository'),
AllowEmptyCommit: (core.getInput('allow_empty_commit') || 'false').toUpperCase() === 'TRUE',
KeepFiles: (core.getInput('keep_files') || 'false').toUpperCase() === 'TRUE',
ForceOrphan: (core.getInput('force_orphan') || 'false').toUpperCase() === 'TRUE',
UserName: core.getInput('user_name'),
UserEmail: core.getInput('user_email'),
CommitMessage: core.getInput('commit_message'),
FullCommitMessage: core.getInput('full_commit_message'),
TagName: core.getInput('tag_name'),
TagMessage: core.getInput('tag_message'),
DisableNoJekyll: useBuiltinJekyll,
CNAME: core.getInput('cname'),
ExcludeAssets: core.getInput('exclude_assets')
};
return inps;
}

228
src/git-utils.ts Normal file
View File

@@ -0,0 +1,228 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as io from '@actions/io';
import * as glob from '@actions/glob';
import path from 'path';
import fs from 'fs';
import {Inputs, CmdResult} from './interfaces';
import {createDir} from './utils';
export async function createBranchForce(branch: string): Promise<void> {
await exec.exec('git', ['init']);
await exec.exec('git', ['checkout', '--orphan', branch]);
return;
}
export async function deleteExcludedAssets(destDir: string, excludeAssets: string): Promise<void> {
core.info(`[INFO] delete excluded assets`);
const excludedAssetNames: Array<string> = excludeAssets.split(',');
const excludedAssetPaths = ((): Array<string> => {
const paths: Array<string> = [];
for (const pattern of excludedAssetNames) {
paths.push(path.join(destDir, pattern));
}
return paths;
})();
const globber = await glob.create(excludedAssetPaths.join('\n'));
for await (const asset of globber.globGenerator()) {
core.info(`[INFO] delete ${asset}`);
io.rmRF(asset);
}
return;
}
export async function copyAssets(
publishDir: string,
destDir: string,
excludeAssets: string
): Promise<void> {
core.info(`[INFO] prepare publishing assets`);
const copyOpts = {recursive: true, force: true};
const files = fs.readdirSync(publishDir);
core.debug(`${files}`);
for await (const file of files) {
if (file === '.git') {
core.info(`[INFO] skip ${file}`);
continue;
}
const filePublishPath = path.join(publishDir, file);
const fileDestPath = path.join(destDir, file);
const destPath = path.dirname(fileDestPath);
if (fs.existsSync(destPath) === false) {
await createDir(destPath);
}
core.info(`[INFO] copy ${file}`);
await io.cp(filePublishPath, fileDestPath, copyOpts);
}
await deleteExcludedAssets(destDir, excludeAssets);
return;
}
export async function setRepo(inps: Inputs, remoteURL: string, workDir: string): Promise<void> {
const publishDir = path.isAbsolute(inps.PublishDir)
? inps.PublishDir
: path.join(`${process.env.GITHUB_WORKSPACE}`, inps.PublishDir);
if (path.isAbsolute(inps.DestinationDir)) {
throw new Error('destination_dir should be a relative path');
}
const destDir = ((): string => {
if (inps.DestinationDir === '') {
return workDir;
} else {
return path.join(workDir, inps.DestinationDir);
}
})();
core.info(`[INFO] ForceOrphan: ${inps.ForceOrphan}`);
if (inps.ForceOrphan) {
await createDir(destDir);
core.info(`[INFO] chdir ${workDir}`);
process.chdir(workDir);
await createBranchForce(inps.PublishBranch);
await copyAssets(publishDir, destDir, inps.ExcludeAssets);
return;
}
const result: CmdResult = {
exitcode: 0,
output: ''
};
const options = {
listeners: {
stdout: (data: Buffer): void => {
result.output += data.toString();
}
}
};
try {
result.exitcode = await exec.exec(
'git',
['clone', '--depth=1', '--single-branch', '--branch', inps.PublishBranch, remoteURL, workDir],
options
);
if (result.exitcode === 0) {
await createDir(destDir);
if (inps.KeepFiles) {
core.info('[INFO] Keep existing files');
} else {
core.info(`[INFO] clean up ${destDir}`);
core.info(`[INFO] chdir ${destDir}`);
process.chdir(destDir);
await exec.exec('git', ['rm', '-r', '--ignore-unmatch', '*']);
}
core.info(`[INFO] chdir ${workDir}`);
process.chdir(workDir);
await copyAssets(publishDir, destDir, inps.ExcludeAssets);
return;
} else {
throw new Error(`Failed to clone remote branch ${inps.PublishBranch}`);
}
} catch (e) {
core.info(`[INFO] first deployment, create new branch ${inps.PublishBranch}`);
core.info(`[INFO] ${e.message}`);
await createDir(destDir);
core.info(`[INFO] chdir ${workDir}`);
process.chdir(workDir);
await createBranchForce(inps.PublishBranch);
await copyAssets(publishDir, destDir, inps.ExcludeAssets);
return;
}
}
export function getUserName(userName: string): string {
if (userName) {
return userName;
} else {
return `${process.env.GITHUB_ACTOR}`;
}
}
export function getUserEmail(userEmail: string): string {
if (userEmail) {
return userEmail;
} else {
return `${process.env.GITHUB_ACTOR}@users.noreply.github.com`;
}
}
export async function setCommitAuthor(userName: string, userEmail: string): Promise<void> {
if (userName && !userEmail) {
throw new Error('user_email is undefined');
}
if (!userName && userEmail) {
throw new Error('user_name is undefined');
}
await exec.exec('git', ['config', 'user.name', getUserName(userName)]);
await exec.exec('git', ['config', 'user.email', getUserEmail(userEmail)]);
}
export function getCommitMessage(
msg: string,
fullMsg: string,
extRepo: string,
baseRepo: string,
hash: string
): string {
const msgHash = ((): string => {
if (extRepo) {
return `${baseRepo}@${hash}`;
} else {
return hash;
}
})();
const subject = ((): string => {
if (fullMsg) {
return fullMsg;
} else if (msg) {
return `${msg} ${msgHash}`;
} else {
return `deploy: ${msgHash}`;
}
})();
return subject;
}
export async function commit(allowEmptyCommit: boolean, msg: string): Promise<void> {
try {
if (allowEmptyCommit) {
await exec.exec('git', ['commit', '--allow-empty', '-m', `${msg}`]);
} else {
await exec.exec('git', ['commit', '-m', `${msg}`]);
}
} catch (e) {
core.info('[INFO] skip commit');
core.debug(`[INFO] skip commit ${e.message}`);
}
}
export async function push(branch: string, forceOrphan: boolean): Promise<void> {
if (forceOrphan) {
await exec.exec('git', ['push', 'origin', '--force', branch]);
} else {
await exec.exec('git', ['push', 'origin', branch]);
}
}
export async function pushTag(tagName: string, tagMessage: string): Promise<void> {
if (tagName === '') {
return;
}
let msg = '';
if (tagMessage) {
msg = tagMessage;
} else {
msg = `Deployment ${tagName}`;
}
await exec.exec('git', ['tag', '-a', `${tagName}`, '-m', `${msg}`]);
await exec.exec('git', ['push', 'origin', `${tagName}`]);
}

10
src/index.ts Normal file
View File

@@ -0,0 +1,10 @@
import * as core from '@actions/core';
import * as main from './main';
(async (): Promise<void> => {
try {
await main.run();
} catch (e) {
core.setFailed(`Action failed with "${e.message}"`);
}
})();

26
src/interfaces.ts Normal file
View File

@@ -0,0 +1,26 @@
export interface Inputs {
readonly DeployKey: string;
readonly GithubToken: string;
readonly PersonalToken: string;
readonly PublishBranch: string;
readonly PublishDir: string;
readonly DestinationDir: string;
readonly ExternalRepository: string;
readonly AllowEmptyCommit: boolean;
readonly KeepFiles: boolean;
readonly ForceOrphan: boolean;
readonly UserName: string;
readonly UserEmail: string;
readonly CommitMessage: string;
readonly FullCommitMessage: string;
readonly TagName: string;
readonly TagMessage: string;
readonly DisableNoJekyll: boolean;
readonly CNAME: string;
readonly ExcludeAssets: string;
}
export interface CmdResult {
exitcode: number;
output: string;
}

90
src/main.ts Normal file
View File

@@ -0,0 +1,90 @@
import {context} from '@actions/github';
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as github from '@actions/github';
import {Inputs} from './interfaces';
import {showInputs, getInputs} from './get-inputs';
import {setTokens} from './set-tokens';
import {setRepo, setCommitAuthor, getCommitMessage, commit, push, pushTag} from './git-utils';
import {getWorkDirName, addNoJekyll, addCNAME, skipOnFork} from './utils';
export async function run(): Promise<void> {
try {
const inps: Inputs = getInputs();
core.startGroup('Dump inputs');
showInputs(inps);
core.endGroup();
if (core.isDebug()) {
core.startGroup('Debug: dump context');
console.log(context);
core.endGroup();
}
const eventName = context.eventName;
if (eventName === 'pull_request' || eventName === 'push') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const isForkRepository = (context.payload as any).repository.fork;
const isSkipOnFork = await skipOnFork(
isForkRepository,
inps.GithubToken,
inps.DeployKey,
inps.PersonalToken
);
if (isSkipOnFork) {
core.warning('This action runs on a fork and not found auth token, Skip deployment');
core.setOutput('skip', 'true');
return;
}
}
core.startGroup('Setup auth token');
const remoteURL = await setTokens(inps);
core.debug(`remoteURL: ${remoteURL}`);
core.endGroup();
core.startGroup('Prepare publishing assets');
const date = new Date();
const unixTime = date.getTime();
const workDir = await getWorkDirName(`${unixTime}`);
await setRepo(inps, remoteURL, workDir);
await addNoJekyll(workDir, inps.DisableNoJekyll);
await addCNAME(workDir, inps.CNAME);
core.endGroup();
core.startGroup('Setup Git config');
try {
await exec.exec('git', ['remote', 'rm', 'origin']);
} catch (e) {
core.info(`[INFO] ${e.message}`);
}
await exec.exec('git', ['remote', 'add', 'origin', remoteURL]);
await exec.exec('git', ['add', '--all']);
await setCommitAuthor(inps.UserName, inps.UserEmail);
core.endGroup();
core.startGroup('Create a commit');
const hash = `${process.env.GITHUB_SHA}`;
const baseRepo = `${github.context.repo.owner}/${github.context.repo.repo}`;
const commitMessage = getCommitMessage(
inps.CommitMessage,
inps.FullCommitMessage,
inps.ExternalRepository,
baseRepo,
hash
);
await commit(inps.AllowEmptyCommit, commitMessage);
core.endGroup();
core.startGroup('Push the commit or tag');
await push(inps.PublishBranch, inps.ForceOrphan);
await pushTag(inps.TagName, inps.TagMessage);
core.endGroup();
core.info('[INFO] Action successfully completed');
return;
} catch (e) {
throw new Error(e.message);
}
}

139
src/set-tokens.ts Normal file
View File

@@ -0,0 +1,139 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as github from '@actions/github';
import * as io from '@actions/io';
import path from 'path';
import fs from 'fs';
const cpSpawnSync = require('child_process').spawnSync;
const cpexec = require('child_process').execFileSync;
import {Inputs} from './interfaces';
import {getHomeDir} from './utils';
export async function setSSHKey(inps: Inputs, publishRepo: string): Promise<string> {
core.info('[INFO] setup SSH deploy key');
const homeDir = await getHomeDir();
const sshDir = path.join(homeDir, '.ssh');
await io.mkdirP(sshDir);
await exec.exec('chmod', ['700', sshDir]);
const knownHosts = path.join(sshDir, 'known_hosts');
// ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts on Ubuntu
const cmdSSHkeyscanOutput = `\
# github.com:22 SSH-2.0-babeld-1f0633a6
github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
`;
fs.writeFileSync(knownHosts, cmdSSHkeyscanOutput + '\n');
core.info(`[INFO] wrote ${knownHosts}`);
await exec.exec('chmod', ['600', knownHosts]);
const idRSA = path.join(sshDir, 'github');
fs.writeFileSync(idRSA, inps.DeployKey + '\n');
core.info(`[INFO] wrote ${idRSA}`);
await exec.exec('chmod', ['600', idRSA]);
const sshConfigPath = path.join(sshDir, 'config');
const sshConfigContent = `\
Host github
HostName github.com
IdentityFile ~/.ssh/github
User git
`;
fs.writeFileSync(sshConfigPath, sshConfigContent + '\n');
core.info(`[INFO] wrote ${sshConfigPath}`);
await exec.exec('chmod', ['600', sshConfigPath]);
if (process.platform === 'win32') {
core.warning(`\
Currently, the deploy_key option is not supported on the windows-latest.
Watch https://github.com/peaceiris/actions-gh-pages/issues/87
`);
await cpSpawnSync('Start-Process', ['powershell.exe', '-Verb', 'runas']);
await cpSpawnSync('sh', ['-c', '\'eval "$(ssh-agent)"\''], {shell: true});
await exec.exec('sc', ['config', 'ssh-agent', 'start=auto']);
await exec.exec('sc', ['start', 'ssh-agent']);
}
await cpexec('ssh-agent', ['-a', '/tmp/ssh-auth.sock']);
core.exportVariable('SSH_AUTH_SOCK', '/tmp/ssh-auth.sock');
await exec.exec('ssh-add', [idRSA]);
return `git@github.com:${publishRepo}.git`;
}
export function setGithubToken(
githubToken: string,
publishRepo: string,
publishBranch: string,
externalRepository: string,
ref: string,
eventName: string
): string {
core.info('[INFO] setup GITHUB_TOKEN');
core.debug(`ref: ${ref}`);
core.debug(`eventName: ${eventName}`);
let isProhibitedBranch = false;
if (externalRepository) {
throw new Error(`\
The generated GITHUB_TOKEN (github_token) does not support to push to an external repository.
Use deploy_key or personal_token.
`);
}
if (eventName === 'push') {
isProhibitedBranch = ref.match(new RegExp(`^refs/heads/${publishBranch}$`)) !== null;
if (isProhibitedBranch) {
throw new Error(`\
You deploy from ${publishBranch} to ${publishBranch}
This operation is prohibited to protect your contents
`);
}
}
return `https://x-access-token:${githubToken}@github.com/${publishRepo}.git`;
}
export function setPersonalToken(personalToken: string, publishRepo: string): string {
core.info('[INFO] setup personal access token');
return `https://x-access-token:${personalToken}@github.com/${publishRepo}.git`;
}
export function getPublishRepo(externalRepository: string, owner: string, repo: string): string {
if (externalRepository) {
return externalRepository;
}
return `${owner}/${repo}`;
}
export async function setTokens(inps: Inputs): Promise<string> {
try {
const publishRepo = getPublishRepo(
inps.ExternalRepository,
github.context.repo.owner,
github.context.repo.repo
);
if (inps.DeployKey) {
return setSSHKey(inps, publishRepo);
} else if (inps.GithubToken) {
const context = github.context;
const ref = context.ref;
const eventName = context.eventName;
return setGithubToken(
inps.GithubToken,
publishRepo,
inps.PublishBranch,
inps.ExternalRepository,
ref,
eventName
);
} else if (inps.PersonalToken) {
return setPersonalToken(inps.PersonalToken, publishRepo);
} else {
throw new Error('not found deploy key or tokens');
}
} catch (e) {
throw new Error(e.message);
}
}

70
src/utils.ts Normal file
View File

@@ -0,0 +1,70 @@
import * as core from '@actions/core';
import * as io from '@actions/io';
import path from 'path';
import fs from 'fs';
export async function getHomeDir(): Promise<string> {
let homedir = '';
if (process.platform === 'win32') {
homedir = process.env['USERPROFILE'] || 'C:\\';
} else {
homedir = `${process.env.HOME}`;
}
core.debug(`homeDir: ${homedir}`);
return homedir;
}
export async function getWorkDirName(unixTime: string): Promise<string> {
const homeDir = await getHomeDir();
const workDirName = path.join(homeDir, `actions_github_pages_${unixTime}`);
return workDirName;
}
export async function createDir(dirPath: string): Promise<void> {
await io.mkdirP(dirPath);
core.debug(`Created directory ${dirPath}`);
return;
}
export async function addNoJekyll(workDir: string, DisableNoJekyll: boolean): Promise<void> {
if (DisableNoJekyll) {
return;
}
const filepath = path.join(workDir, '.nojekyll');
if (fs.existsSync(filepath)) {
return;
}
fs.closeSync(fs.openSync(filepath, 'w'));
core.info(`[INFO] Created ${filepath}`);
}
export async function addCNAME(workDir: string, content: string): Promise<void> {
if (content === '') {
return;
}
const filepath = path.join(workDir, 'CNAME');
if (fs.existsSync(filepath)) {
core.info(`CNAME already exists, skip adding CNAME`);
return;
}
fs.writeFileSync(filepath, content + '\n');
core.info(`[INFO] Created ${filepath}`);
}
export async function skipOnFork(
isForkRepository: boolean,
githubToken: string,
deployKey: string,
personalToken: string
): Promise<boolean> {
if (isForkRepository) {
if (githubToken === '' && deployKey === '' && personalToken === '') {
return true;
}
}
return false;
}

1
test_projects/mdbook/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
book

View File

@@ -0,0 +1,6 @@
[book]
authors = ["peaceiris"]
language = "en"
multilingual = false
src = "src"
title = "GitHub Actions for GitHub Pages"

View File

@@ -0,0 +1,3 @@
# Summary
- [Chapter 1](./chapter_1.md)

View File

@@ -0,0 +1,3 @@
# Chapter 1
test 7

65
tsconfig.json Normal file
View File

@@ -0,0 +1,65 @@
{
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./lib", /* Redirect output structure to the directory. */
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
"removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
"resolveJsonModule": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}