Compare commits

...

93 Commits

Author SHA1 Message Date
peaceiris
6fca5e4b8e chore(release): 2.4.12 2020-06-21 13:19:00 +09:00
peaceiris
0ea1e4ebec chore(release): Add build assets 2020-06-21 13:18:58 +09:00
yutopp
54af4c1320 fix: Wrap an entrypoint by async to handle exceptions correctly (#363)
* fix: add return type

Co-authored-by: Shohei Ueda <30958501+peaceiris@users.noreply.github.com>
2020-06-21 13:16:10 +09:00
Shohei Ueda
998d85162e ci: remove skipci job 2020-06-21 13:04:33 +09:00
Shohei Ueda
c0e9f57fdb ci: add is_skip [skip ci] 2020-06-19 20:46:22 +09:00
Shohei Ueda
7160613349 deps: bump node from 12.18.0 to 12.18.1 (#360) 2020-06-19 12:00:05 +09:00
dependabot[bot]
41aa07a09a ci: bump actions/setup-node from v1 to v2.0.0 (#359)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...e434342e4e324065b1b19b24586c710a1a68d2d7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-19 00:40:09 +09:00
Shohei Ueda
697e1b0bf9 ci: fix labels of github-actions 2020-06-19 00:23:24 +09:00
dependabot[bot]
0b3975d690 ci: bump codecov/codecov-action from v1 to v1.0.7 (#358)
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-19 00:20:23 +09:00
Shohei Ueda
38bf1d20d0 ci: add package-ecosystem github-actions 2020-06-19 00:12:10 +09:00
dependabot[bot]
4ec522dca3 deps: bump lint-staged from 10.2.10 to 10.2.11 (#357)
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:15:09 +09:00
dependabot[bot]
914abda3d8 deps: bump lint-staged from 10.2.9 to 10.2.10 (#356)
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:24:41 +09:00
Shohei Ueda
926e28de4a ci: Add ubuntu-20.04 (#355) 2020-06-13 17:53:43 +09:00
Shohei Ueda
09cf94008e deps: bump node from 12.16.3 to 12.18.0 (#353) 2020-06-13 17:45:11 +09:00
Shohei Ueda
54205620ee deps: bump git from 2.26.1 to 2.27.0 (#354) 2020-06-13 17:44:54 +09:00
dependabot[bot]
b18493fdf7 deps: bump @types/jest from 25.2.3 to 26.0.0 (#352)
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-11 11:11:16 +09:00
dependabot[bot]
2f831edb58 deps: bump @types/node from 12.12.45 to 12.12.47 (#351)
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-10 13:15:09 +09:00
Shohei Ueda
b99235e60e docs: add Babel 2020-06-10 08:46:47 +09:00
Shohei Ueda
75e0d6c01d chore: Add CODEOWNERS 2020-06-09 11:25:45 +09:00
dependabot[bot]
b5e2760b23 deps: bump @types/node from 12.12.44 to 12.12.45 (#350)
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:24:34 +09:00
dependabot[bot]
dcf08e2fd2 deps: bump lint-staged from 10.2.8 to 10.2.9 (#349)
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-08 11:15:08 +09:00
dependabot[bot]
658d24bb3e deps: bump typescript from 3.9.3 to 3.9.5 (#348)
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-07 12:56:00 +09:00
dependabot[bot]
e92a791bf3 deps: bump @types/node from 12.12.43 to 12.12.44 (#347)
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-05 11:11:20 +09:00
dependabot[bot]
533dde8575 deps: bump lint-staged from 10.2.7 to 10.2.8 (#346)
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 11:05:22 +09:00
Shohei Ueda
aa5de43b2b docs: remove Dependabot status badge 2020-06-03 08:32:49 +09:00
dependabot-preview[bot]
f0d93788f5 ci: Update Dependabot config file (#345)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-03 08:07:08 +09:00
dependabot-preview[bot]
07ef174ec4 deps: bump @types/node from 12.12.42 to 12.12.43
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.42 to 12.12.43.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 02:32:45 +00:00
peaceiris
71fe6dbc7f docs: Add new section for asciidoctor
Close #342
2020-05-29 22:03:01 +09:00
dependabot-preview[bot]
592603c7c2 deps: bump lint-staged from 10.2.6 to 10.2.7
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.6 to 10.2.7.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.6...v10.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-29 06:31:27 +00:00
Shohei Ueda
0f35b33b73 docs: update url 2020-05-28 16:14:25 +09:00
dependabot-preview[bot]
b458469ce7 deps: bump eslint-plugin-jest from 23.13.1 to 23.13.2
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.13.1 to 23.13.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.13.1...v23.13.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 21:09:30 +00:00
peaceiris
cb1a02bb35 docs: bump hugo to 0.71.1 2020-05-25 19:00:37 +09:00
Shohei Ueda
ad41861beb docs: bump hugo to 0.71.1 2020-05-25 18:59:13 +09:00
peaceiris
cb3ccf6f42 docs: bump hugo from 0.68.3 to 0.71.0 2020-05-24 12:13:05 +09:00
peaceiris
2357c76e2a ci: Add hook for doctoc 2020-05-24 12:11:45 +09:00
peaceiris
dd334074ce docs: update ToC 2020-05-24 12:10:28 +09:00
peaceiris
e3045c5fb5 docs: Add new section for google/docsy
An example workflow for autoprefixer, postcss-cli,
and a Hugo theme which has recursive Git submodules

https://github.com/peaceiris/actions-hugo/issues/340
https://github.com/google/docsy-example/issues/60
2020-05-24 12:09:28 +09:00
dependabot-preview[bot]
8f166cf07e deps: bump @zeit/ncc from 0.22.2 to 0.22.3 (#339)
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 19:14:58 +09:00
dependabot-preview[bot]
b920e249f6 deps: bump lint-staged from 10.2.4 to 10.2.6
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.4 to 10.2.6.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.4...v10.2.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-22 11:35:23 +00:00
dependabot-preview[bot]
ad8ddd743a deps: bump @types/node from 12.12.41 to 12.12.42
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.41 to 12.12.42.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 21:28:04 +00:00
peaceiris
16b12f7dfe chore: Please follow the issue templates 2020-05-21 22:58:48 +09:00
dependabot-preview[bot]
89fc843efb deps: bump @types/node from 12.12.38 to 12.12.41
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.38 to 12.12.41.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 02:23:15 +00:00
dependabot-preview[bot]
d3ebe5d657 deps: bump typescript from 3.9.2 to 3.9.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.2 to 3.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.2...v3.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 12:57:59 +00:00
dependabot-preview[bot]
3c2f87a0bf deps: bump @actions/tool-cache from 1.3.5 to 1.5.5 (#333)
Bumps [@actions/tool-cache](https://github.com/actions/toolkit/tree/HEAD/packages/tool-cache) from 1.3.5 to 1.5.5.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/tool-cache/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/tool-cache)

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-20 11:29:21 +09:00
dependabot-preview[bot]
b1d5e3fb14 deps: bump @types/jest from 25.2.2 to 25.2.3
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.2 to 25.2.3.
- [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>
2020-05-19 03:00:22 +00:00
dependabot-preview[bot]
98135d2cd0 deps: bump @zeit/ncc from 0.22.1 to 0.22.2 (#329)
Bumps [@zeit/ncc](https://github.com/zeit/ncc) from 0.22.1 to 0.22.2.
- [Release notes](https://github.com/zeit/ncc/releases)
- [Commits](https://github.com/zeit/ncc/compare/0.22.1...0.22.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-05-19 11:12:09 +09:00
dependabot-preview[bot]
271cee08e7 deps: bump @typescript-eslint/parser from 2.33.0 to 2.34.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.33.0 to 2.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.34.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 21:48:54 +00:00
dependabot-preview[bot]
7e64f450a7 deps: bump @typescript-eslint/eslint-plugin from 2.33.0 to 2.34.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.33.0 to 2.34.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.34.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 21:40:33 +00:00
dependabot-preview[bot]
2cdb0da4de deps: bump lint-staged from 10.2.2 to 10.2.4
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.2 to 10.2.4.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.2...v10.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 18:30:47 +00:00
dependabot-preview[bot]
7d80e1641c deps: bump eslint-plugin-jest from 23.13.0 to 23.13.1
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.13.0 to 23.13.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.13.0...v23.13.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-17 09:22:42 +00:00
dependabot-preview[bot]
dd37fe20fa deps: bump eslint-plugin-jest from 23.12.0 to 23.13.0
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.12.0 to 23.13.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.12.0...v23.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 10:07:04 +00:00
dependabot-preview[bot]
e6a01917e0 deps: bump eslint-plugin-jest from 23.11.0 to 23.12.0
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.11.0 to 23.12.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.11.0...v23.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 08:58:54 +00:00
dependabot-preview[bot]
9ba52187b5 deps: bump @actions/tool-cache from 1.3.4 to 1.3.5
Bumps [@actions/tool-cache](https://github.com/actions/toolkit/tree/HEAD/packages/tool-cache) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/tool-cache/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/tool-cache)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 19:18:34 +00:00
dependabot-preview[bot]
4c11e4e48a deps: bump @types/jest from 25.2.1 to 25.2.2
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.1 to 25.2.2.
- [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>
2020-05-13 18:59:58 +00:00
dependabot-preview[bot]
66a332b429 deps: bump @typescript-eslint/eslint-plugin from 2.32.0 to 2.33.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.32.0 to 2.33.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.33.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 02:21:52 +00:00
dependabot-preview[bot]
012b11dba4 deps: bump @typescript-eslint/parser from 2.32.0 to 2.33.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.32.0 to 2.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.33.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 22:54:07 +00:00
dependabot-preview[bot]
b555054157 deps: bump typescript from 3.8.3 to 3.9.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 22:05:59 +00:00
dependabot-preview[bot]
c264525a0a deps: bump eslint-plugin-jest from 23.10.0 to 23.11.0
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.10.0 to 23.11.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.10.0...v23.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 20:13:36 +00:00
dependabot-preview[bot]
9216be3bc0 deps: bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.32.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.31.0 to 2.32.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.32.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-11 20:55:55 +00:00
dependabot-preview[bot]
8c661f7d9b deps: bump @typescript-eslint/parser from 2.31.0 to 2.32.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.31.0 to 2.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.32.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-11 20:41:23 +00:00
peaceiris
07082d9e3b chore: Enhance style 2020-05-09 22:17:38 +09:00
dependabot-preview[bot]
d7c46d09c9 deps: bump ts-jest from 25.5.0 to 25.5.1
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 25.5.0 to 25.5.1.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v25.5.0...v25.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-09 09:06:21 +00:00
dependabot-preview[bot]
ef0b1e0a85 deps: bump eslint-plugin-jest from 23.9.0 to 23.10.0
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.9.0 to 23.10.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.9.0...v23.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-09 00:12:38 +00:00
Shohei Ueda
312bc2c8e4 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:11 +09:00
Shohei Ueda
e4c9fb3020 ci: Change update_type from all to semver:minor 2020-05-07 11:34:34 +09:00
dependabot-preview[bot]
73356f0ae5 deps: bump standard-version from 7.1.0 to 8.0.0
Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 7.1.0 to 8.0.0.
- [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/v7.1.0...v8.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-06 20:14:33 +00:00
dependabot-preview[bot]
0c93074aab deps: bump ts-jest from 25.4.0 to 25.5.0
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 25.4.0 to 25.5.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v25.4.0...v25.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-06 12:34:27 +00:00
dependabot-preview[bot]
dc79cf98c4 deps: bump @types/node from 12.12.37 to 12.12.38
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.37 to 12.12.38.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-05 19:45:32 +00:00
dependabot-preview[bot]
4271d65cba deps: bump jest-circus from 26.0.0 to 26.0.1
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 26.0.0 to 26.0.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v26.0.1/packages/jest-circus)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-05 15:20:15 +00:00
dependabot-preview[bot]
fc3f6e7cc9 deps: bump jest-circus from 25.5.4 to 26.0.0
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 25.5.4 to 26.0.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.0.0/packages/jest-circus)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-04 22:03:31 +00:00
dependabot-preview[bot]
b99a08a3b8 deps: bump @typescript-eslint/parser from 2.30.0 to 2.31.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.30.0 to 2.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.31.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-04 21:43:40 +00:00
dependabot-preview[bot]
b92f084f45 deps: bump @typescript-eslint/eslint-plugin from 2.30.0 to 2.31.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.30.0 to 2.31.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.31.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-04 21:30:40 +00:00
dependabot-preview[bot]
11b6ba478c deps: bump eslint-plugin-jest from 23.8.2 to 23.9.0
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 23.8.2 to 23.9.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.8.2...v23.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-04 13:54:42 +00:00
Shohei Ueda
0b128ac232 ci: Enhance test workflow (#301)
- Add ubuntu-16.04
- Bump actions/upload-artifact from v1 to v2
- Fix coverage artifact name
2020-05-03 13:33:05 +09:00
Shohei Ueda
55117bdfe7 ci: Add ubuntu-16.04 2020-05-03 13:17:01 +09:00
dependabot-preview[bot]
b0c61036db deps: bump jest from 25.5.3 to 25.5.4
Bumps [jest](https://github.com/facebook/jest) from 25.5.3 to 25.5.4.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.5.3...v25.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-02 08:31:15 +00:00
dependabot-preview[bot]
9983819c7b deps: bump jest-circus from 25.5.3 to 25.5.4
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 25.5.3 to 25.5.4.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v25.5.4/packages/jest-circus)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-02 08:23:15 +00:00
dependabot-preview[bot]
466efd6e32 deps: bump lint-staged from 10.2.1 to 10.2.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.1 to 10.2.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.1...v10.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-01 04:43:00 +00:00
dependabot-preview[bot]
815ceae6cf deps: bump jest from 25.5.2 to 25.5.3
Bumps [jest](https://github.com/facebook/jest) from 25.5.2 to 25.5.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.5.2...v25.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 22:42:43 +00:00
dependabot-preview[bot]
02e6a28e7e deps: bump jest-circus from 25.5.2 to 25.5.3
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 25.5.2 to 25.5.3.
- [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/v25.5.3/packages/jest-circus)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 22:28:45 +00:00
dependabot-preview[bot]
aaaac3ae99 deps: bump @actions/core from 1.2.3 to 1.2.4
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 17:17:43 +00:00
dependabot-preview[bot]
97168f4ffd deps: bump lint-staged from 10.2.0 to 10.2.1
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.0 to 10.2.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.0...v10.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 15:04:51 +00:00
dependabot-preview[bot]
b9569c27b6 deps: bump jest from 25.5.1 to 25.5.2
Bumps [jest](https://github.com/facebook/jest) from 25.5.1 to 25.5.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/compare/v25.5.1...v25.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 22:31:50 +00:00
dependabot-preview[bot]
ed2a699866 deps: bump jest-circus from 25.5.1 to 25.5.2
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 25.5.1 to 25.5.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/v25.5.2/packages/jest-circus)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 22:24:20 +00:00
peaceiris
271b8c5d4e ci: Add Label Commenter Action
https://github.com/peaceiris/actions-label-commenter
2020-04-30 02:42:58 +09:00
peaceiris
2aa39a0fb5 chore: Ported issue template
from https://github.com/peaceiris/actions-gh-pages
2020-04-30 02:07:56 +09:00
dependabot-preview[bot]
b9fb59f829 deps: bump jest from 25.5.0 to 25.5.1
Bumps [jest](https://github.com/facebook/jest) from 25.5.0 to 25.5.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.5.0...v25.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 13:58:55 +00:00
dependabot-preview[bot]
a3c3e71549 deps: bump jest-circus from 25.5.0 to 25.5.1
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 25.5.0 to 25.5.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v25.5.1/packages/jest-circus)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 13:37:59 +00:00
Shohei Ueda
32e3df2806 deps: bump node from 12.16.1 to 12.16.3 (#288) 2020-04-29 15:33:47 +09:00
dependabot-preview[bot]
a098653b2f deps: bump @actions/exec from 1.0.3 to 1.0.4
Bumps [@actions/exec](https://github.com/actions/toolkit/tree/HEAD/packages/exec) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/exec/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/exec)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 06:30:59 +00:00
dependabot-preview[bot]
5dbfe6b02f deps: bump lint-staged from 10.1.6 to 10.2.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.6 to 10.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.1.6...v10.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 05:25:37 +00:00
dependabot-preview[bot]
3e0138dbef deps: bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.30.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.28.0 to 2.30.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.30.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 05:17:24 +00:00
peaceiris
a0dcca096a chore(release): Remove build assets [skip ci] 2020-04-29 13:44:09 +09:00
19 changed files with 2199 additions and 866 deletions

View File

@@ -1,30 +0,0 @@
version: 1
update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "live"
default_labels:
- "dependencies"
commit_message:
prefix: "deps"
automerged_updates:
- match:
dependency_type: "development"
# Supported dependency types:
# - "development"
# - "production"
# - "all"
update_type: "all"
# Supported updates to automerge:
# - "security:patch"
# SemVer patch update that fixes a known security vulnerability
# - "semver:patch"
# SemVer patch update, e.g. > 1.x && 1.0.1 to 1.0.3
# - "semver:minor"
# SemVer minor update, e.g. > 1.x && 2.1.4 to 2.3.1
# - "in_range"
# matching the version requirement in your package manifest
# - "all"
- match:
dependency_type: "production"
update_type: "semver:patch"

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

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 of this repository.
For users of the GitHub Pages Action:
- [ ] I checked [Available Options](https://github.com/peaceiris/actions-gh-pages#options)
- [ ] I followed [Tips and FAQs](https://github.com/peaceiris/actions-gh-pages#tips-and-faq)
- [ ] I tried [Workflow Examples](https://github.com/peaceiris/actions-gh-pages#examples)
## 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.

View File

@@ -1,31 +1,39 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug: This is a sample issue title'
name: Bug Report
about: First, use the User Support Issue Template
title: 'sample_title'
labels: bug
assignees: peaceiris
---
**Describe the bug**
**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**
## To Reproduce
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
## Expected behavior
A clear and concise description of what you expected to happen.
**Screenshots**
## Screenshots
If applicable, add screenshots to help explain your problem.
**Your YAML file**
## Your YAML file
- A link to your repository
- A link to your YAML file
**Additional context**
## Additional context
Add any other context about the problem here.

View File

@@ -1,20 +1,26 @@
---
name: Proposal
about: Suggest an idea for this project
title: 'proposal: This is a sample title'
title: 'sample_title'
labels: proposal
assignees: peaceiris
---
**Is your feature request related to a problem? Please describe.**
**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**
## Describe the solution you'd like
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
## Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
## Additional context
Add any other context or screenshots about the feature request here.

View File

@@ -1,7 +1,7 @@
blank_issues_enabled: false
contact_links:
- name: GitHub Actions Community Forum
url: https://github.community/t5/GitHub-Actions/bd-p/actions
- name: GitHub Actions - GitHub Support Community Forum
url: https://github.community/c/github-actions
about: Please ask questions about GitHub Actions here.
- name: Hugo Community Forum
url: https://discourse.gohugo.io/

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

@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: '11:00'
timezone: Japan
open-pull-requests-limit: 1
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"
time: '11:00'
timezone: Japan
labels:
- "CI/CD"
commit-message:
prefix: ci

32
.github/label-commenter-config.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
labels:
- name: invalid
labeled:
issue:
body: Please follow the issue templates.
action: close
- name: forum
labeled:
issue:
body: |
Please ask questions about GitHub Actions or Hugo at the following forum.
- [GitHub Actions Community Forum](https://github.community/t5/GitHub-Actions/bd-p/actions)
- [Hugo Community Forum](https://discourse.gohugo.io/)
action: close
- name: wontfix
labeled:
issue:
body: This will not be worked on but we appreciate your contribution.
action: close
unlabeled:
issue:
body: This has become active again.
action: open
- name: duplicate
labeled:
issue:
body: This issue already exists.
action: close
- name: good first issue
labeled:
issue:
body: This issue is easy for contributing. Everyone can work on this.

25
.github/workflows/label-commenter.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Label Commenter
on:
issues:
types:
- labeled
- unlabeled
# pull_request:
# types:
# - labeled
# - unlabeled
jobs:
comment:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: Label Commenter
uses: peaceiris/actions-label-commenter@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# config_file: .github/label-commenter-config.yml

View File

@@ -1,7 +1,6 @@
name: Daily Test
on:
# push:
schedule:
- cron: '13 13 * * *'
@@ -11,7 +10,9 @@ jobs:
strategy:
matrix:
os:
- 'ubuntu-20.04'
- 'ubuntu-18.04'
- 'ubuntu-16.04'
- 'macos-latest'
- 'windows-latest'
hugo-version:

View File

@@ -7,25 +7,18 @@ on:
paths-ignore:
- '**.md'
pull_request:
types:
- opened
- synchronize
paths-ignore:
- '**.md'
jobs:
skipci:
runs-on: ubuntu-18.04
steps:
- run: echo "[skip ci] ${{ contains(github.event.head_commit.message, '[skip ci]') }}"
test:
runs-on: ${{ matrix.os }}
if: contains(github.event.head_commit.message, '[skip ci]') == false
strategy:
matrix:
os:
- 'ubuntu-20.04'
- 'ubuntu-18.04'
- 'ubuntu-16.04'
- 'macos-latest'
- 'windows-latest'
steps:
@@ -36,34 +29,33 @@ jobs:
id: nvm
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v2.0.0
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- run: npm i -g npm
- run: npm ci
- name: Run prettier
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run format:check
- name: Run eslint
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run lint
- name: Run ncc
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run build
- run: npm test
- name: Upload test coverage as artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: coverage
name: coverage-${{ matrix.os }}
path: coverage
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v1.0.7
with:
token: ${{ secrets.CODECOV_TOKEN }}

2
.nvmrc
View File

@@ -1 +1 @@
12.16.1
12.18.1

View File

@@ -2,6 +2,116 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [2.4.12](https://github.com/peaceiris/actions-hugo/compare/v2.4.11...v2.4.12) (2020-06-21)
### chore
* Add CODEOWNERS ([75e0d6c](https://github.com/peaceiris/actions-hugo/commit/75e0d6c01d147a40a4ca4d546a35f0aa89977cd8))
* Enhance style ([07082d9](https://github.com/peaceiris/actions-hugo/commit/07082d9e3b019317c88ab12ee38807e476f9ae5c))
* Please follow the issue templates ([16b12f7](https://github.com/peaceiris/actions-hugo/commit/16b12f7dfe70a4b9d8a867616374a2b70b6cbd7d))
* Ported issue template ([2aa39a0](https://github.com/peaceiris/actions-hugo/commit/2aa39a0fb5fd48fb28b7fd4c1e41980674d291f4))
### ci
* Add hook for doctoc ([2357c76](https://github.com/peaceiris/actions-hugo/commit/2357c76e2abc2649fcab48eb899a8b2a617d371a))
* add is_skip [skip ci] ([c0e9f57](https://github.com/peaceiris/actions-hugo/commit/c0e9f57fdbd5049eb5e8d479c10b7d85bccaf21f))
* Add Label Commenter Action ([271b8c5](https://github.com/peaceiris/actions-hugo/commit/271b8c5d4e39f7019428366d9194fb75beb26a23))
* add package-ecosystem github-actions ([38bf1d2](https://github.com/peaceiris/actions-hugo/commit/38bf1d20d08732c5b05fafc7093258d87ae8733a))
* Add ubuntu-16.04 ([55117bd](https://github.com/peaceiris/actions-hugo/commit/55117bdfe7031543062c1a69e3f4ccf28bec9448))
* Add ubuntu-20.04 (#355) ([926e28d](https://github.com/peaceiris/actions-hugo/commit/926e28de4aa8dca25a718a1eb8c593a771b2c3b3)), closes [#355](https://github.com/peaceiris/actions-hugo/issues/355)
* bump actions/setup-node from v1 to v2.0.0 (#359) ([41aa07a](https://github.com/peaceiris/actions-hugo/commit/41aa07a09a8f741e87bea9a2d763300f19702547)), closes [#359](https://github.com/peaceiris/actions-hugo/issues/359)
* bump codecov/codecov-action from v1 to v1.0.7 (#358) ([0b3975d](https://github.com/peaceiris/actions-hugo/commit/0b3975d69013fa58ebe97813b1de53260d654712)), closes [#358](https://github.com/peaceiris/actions-hugo/issues/358)
* Change update_type from all to semver:minor ([e4c9fb3](https://github.com/peaceiris/actions-hugo/commit/e4c9fb3020e200921210b2792ef39c5b70f335c6))
* Enhance test workflow (#301) ([0b128ac](https://github.com/peaceiris/actions-hugo/commit/0b128ac232579caa1e5817628f96aee1759a3627)), closes [#301](https://github.com/peaceiris/actions-hugo/issues/301)
* fix labels of github-actions ([697e1b0](https://github.com/peaceiris/actions-hugo/commit/697e1b0bf943bedbb08f978b353956d591f38dc0))
* remove pull_request.types ([312bc2c](https://github.com/peaceiris/actions-hugo/commit/312bc2c8e4e0c8f0e297fabe335bd322edbb5a3b))
* remove skipci job ([998d851](https://github.com/peaceiris/actions-hugo/commit/998d85162e3e9752aabdf6e7a2dd2dcdd946881e))
* Update Dependabot config file (#345) ([f0d9378](https://github.com/peaceiris/actions-hugo/commit/f0d93788f5871d7f4cfa35da5c12cada1b9de16e)), closes [#345](https://github.com/peaceiris/actions-hugo/issues/345)
### deps
* bump @actions/core from 1.2.3 to 1.2.4 ([aaaac3a](https://github.com/peaceiris/actions-hugo/commit/aaaac3ae9967a1f3277ceb6aab52070034ec3565))
* bump @actions/exec from 1.0.3 to 1.0.4 ([a098653](https://github.com/peaceiris/actions-hugo/commit/a098653b2f3a9ed5e9bb14ccbf32dfe70c3f4dd3))
* bump @actions/tool-cache from 1.3.4 to 1.3.5 ([9ba5218](https://github.com/peaceiris/actions-hugo/commit/9ba52187b56e1070eee5b8d28b899ed7317405f6))
* bump @actions/tool-cache from 1.3.5 to 1.5.5 (#333) ([3c2f87a](https://github.com/peaceiris/actions-hugo/commit/3c2f87a0bff49d8aed403dd586b84f128f9ba4fd)), closes [#333](https://github.com/peaceiris/actions-hugo/issues/333)
* bump @types/jest from 25.2.1 to 25.2.2 ([4c11e4e](https://github.com/peaceiris/actions-hugo/commit/4c11e4e48a81e55ee0841a8018f16ec59f27ca20))
* bump @types/jest from 25.2.2 to 25.2.3 ([b1d5e3f](https://github.com/peaceiris/actions-hugo/commit/b1d5e3fb147bfbb9c89327b64067e4cde1b2ac84))
* bump @types/jest from 25.2.3 to 26.0.0 (#352) ([b18493f](https://github.com/peaceiris/actions-hugo/commit/b18493fdf7d73b960b320e49e1d5b83991e87c88)), closes [#352](https://github.com/peaceiris/actions-hugo/issues/352)
* bump @types/node from 12.12.37 to 12.12.38 ([dc79cf9](https://github.com/peaceiris/actions-hugo/commit/dc79cf98c43e9310a1ab08bb501529d7ed6aaedc))
* bump @types/node from 12.12.38 to 12.12.41 ([89fc843](https://github.com/peaceiris/actions-hugo/commit/89fc843efbe601d77b00552cd75ef7a262f9560a))
* bump @types/node from 12.12.41 to 12.12.42 ([ad8ddd7](https://github.com/peaceiris/actions-hugo/commit/ad8ddd743ab4b5e555f93f960e2f9913624102ac))
* bump @types/node from 12.12.42 to 12.12.43 ([07ef174](https://github.com/peaceiris/actions-hugo/commit/07ef174ec463583d48557606ba0546543ff7a677))
* bump @types/node from 12.12.43 to 12.12.44 (#347) ([e92a791](https://github.com/peaceiris/actions-hugo/commit/e92a791bf30d2c682faf364d4d8658f944384d46)), closes [#347](https://github.com/peaceiris/actions-hugo/issues/347)
* bump @types/node from 12.12.44 to 12.12.45 (#350) ([b5e2760](https://github.com/peaceiris/actions-hugo/commit/b5e2760b23b75985a5963549ef967ad204e0b44a)), closes [#350](https://github.com/peaceiris/actions-hugo/issues/350)
* bump @types/node from 12.12.45 to 12.12.47 (#351) ([2f831ed](https://github.com/peaceiris/actions-hugo/commit/2f831edb58c1372ecf7707dd046cabece5687106)), closes [#351](https://github.com/peaceiris/actions-hugo/issues/351)
* bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.30.0 ([3e0138d](https://github.com/peaceiris/actions-hugo/commit/3e0138dbef3407a112e64881f1550c88456109e9))
* bump @typescript-eslint/eslint-plugin from 2.30.0 to 2.31.0 ([b92f084](https://github.com/peaceiris/actions-hugo/commit/b92f084f4595967244dc347624cfab55415b0bc1))
* bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.32.0 ([9216be3](https://github.com/peaceiris/actions-hugo/commit/9216be3bc0ef12b561702f0a148c20b79f6834d2))
* bump @typescript-eslint/eslint-plugin from 2.32.0 to 2.33.0 ([66a332b](https://github.com/peaceiris/actions-hugo/commit/66a332b429091e28faebc300216f305e81c339f7))
* bump @typescript-eslint/eslint-plugin from 2.33.0 to 2.34.0 ([7e64f45](https://github.com/peaceiris/actions-hugo/commit/7e64f450a732b1336e2b46870c89d989cbf52d47))
* bump @typescript-eslint/parser from 2.30.0 to 2.31.0 ([b99a08a](https://github.com/peaceiris/actions-hugo/commit/b99a08a3b8e7dc0711f18e3c8180d1c8c873eb1b))
* bump @typescript-eslint/parser from 2.31.0 to 2.32.0 ([8c661f7](https://github.com/peaceiris/actions-hugo/commit/8c661f7d9b7ab8cf940148fde66a58a6befa6391))
* bump @typescript-eslint/parser from 2.32.0 to 2.33.0 ([012b11d](https://github.com/peaceiris/actions-hugo/commit/012b11dba4f2e38755c5acdfba1c4711f009c3ae))
* bump @typescript-eslint/parser from 2.33.0 to 2.34.0 ([271cee0](https://github.com/peaceiris/actions-hugo/commit/271cee08e77e64479d7282a1f7bba2733c1a5502))
* bump @zeit/ncc from 0.22.1 to 0.22.2 (#329) ([98135d2](https://github.com/peaceiris/actions-hugo/commit/98135d2cd0f2f4597c404384cafa03215fd01378)), closes [#329](https://github.com/peaceiris/actions-hugo/issues/329)
* bump @zeit/ncc from 0.22.2 to 0.22.3 (#339) ([8f166cf](https://github.com/peaceiris/actions-hugo/commit/8f166cf07e4691d65b912ad2fef51aa3e5ff57fe)), closes [#339](https://github.com/peaceiris/actions-hugo/issues/339)
* bump eslint-plugin-jest from 23.10.0 to 23.11.0 ([c264525](https://github.com/peaceiris/actions-hugo/commit/c264525a0ab2387ea6309d92576e7462c903a1f5))
* bump eslint-plugin-jest from 23.11.0 to 23.12.0 ([e6a0191](https://github.com/peaceiris/actions-hugo/commit/e6a01917e07ede5857ebc5e686249e8d3ff9a491))
* bump eslint-plugin-jest from 23.12.0 to 23.13.0 ([dd37fe2](https://github.com/peaceiris/actions-hugo/commit/dd37fe20fa14d9a38229a3d004c1db29de6a6e74))
* bump eslint-plugin-jest from 23.13.0 to 23.13.1 ([7d80e16](https://github.com/peaceiris/actions-hugo/commit/7d80e1641cfd813ce9387b4b9961a4e7845f31ec))
* bump eslint-plugin-jest from 23.13.1 to 23.13.2 ([b458469](https://github.com/peaceiris/actions-hugo/commit/b458469ce7b3a8dd28e7c9cd4428bbf293202e18))
* bump eslint-plugin-jest from 23.8.2 to 23.9.0 ([11b6ba4](https://github.com/peaceiris/actions-hugo/commit/11b6ba478ca58a02938a6d650d6d0a7a0637054e))
* bump eslint-plugin-jest from 23.9.0 to 23.10.0 ([ef0b1e0](https://github.com/peaceiris/actions-hugo/commit/ef0b1e0a8500c34dff72bb6e730a5d2d62db362f))
* bump git from 2.26.1 to 2.27.0 (#354) ([5420562](https://github.com/peaceiris/actions-hugo/commit/54205620eee116a6c8b2b43047be61fec3713f75)), closes [#354](https://github.com/peaceiris/actions-hugo/issues/354)
* bump jest from 25.5.0 to 25.5.1 ([b9fb59f](https://github.com/peaceiris/actions-hugo/commit/b9fb59f829d2305d75c8d6f4acafa19d0f3c9376))
* bump jest from 25.5.1 to 25.5.2 ([b9569c2](https://github.com/peaceiris/actions-hugo/commit/b9569c27b6b33a0677dbb14f753b4494b7aa3ff1))
* bump jest from 25.5.2 to 25.5.3 ([815ceae](https://github.com/peaceiris/actions-hugo/commit/815ceae6cf2313a1c633cfc24648f08015101d49))
* bump jest from 25.5.3 to 25.5.4 ([b0c6103](https://github.com/peaceiris/actions-hugo/commit/b0c61036db0b2f5747405b1c2e29c262d3af6364))
* bump jest-circus from 25.5.0 to 25.5.1 ([a3c3e71](https://github.com/peaceiris/actions-hugo/commit/a3c3e71549f8f2b4d19e2a9c1908bc094d3c7964))
* bump jest-circus from 25.5.1 to 25.5.2 ([ed2a699](https://github.com/peaceiris/actions-hugo/commit/ed2a6998667974d53da9eb518d497f1842362413))
* bump jest-circus from 25.5.2 to 25.5.3 ([02e6a28](https://github.com/peaceiris/actions-hugo/commit/02e6a28e7e7ecfd74ba1de73a0e69cd9d32aa856))
* bump jest-circus from 25.5.3 to 25.5.4 ([9983819](https://github.com/peaceiris/actions-hugo/commit/9983819c7b12bf0b2199eefb45264ef96b2b86ec))
* bump jest-circus from 25.5.4 to 26.0.0 ([fc3f6e7](https://github.com/peaceiris/actions-hugo/commit/fc3f6e7cc9e9bbd4a31ba5644b44a40c4e092882))
* bump jest-circus from 26.0.0 to 26.0.1 ([4271d65](https://github.com/peaceiris/actions-hugo/commit/4271d65cbac605d9b9143a59ed77436a90328439))
* bump lint-staged from 10.1.6 to 10.2.0 ([5dbfe6b](https://github.com/peaceiris/actions-hugo/commit/5dbfe6b02fa7ea6c544a91b8c733f370eb781fe1))
* bump lint-staged from 10.2.0 to 10.2.1 ([97168f4](https://github.com/peaceiris/actions-hugo/commit/97168f4ffdc9120321ab81f3785ed883a0292da2))
* bump lint-staged from 10.2.1 to 10.2.2 ([466efd6](https://github.com/peaceiris/actions-hugo/commit/466efd6e327be8268c8e4f58b8dde51b571696b0))
* bump lint-staged from 10.2.10 to 10.2.11 (#357) ([4ec522d](https://github.com/peaceiris/actions-hugo/commit/4ec522dca345774f865ef33f624c622763dedbb8)), closes [#357](https://github.com/peaceiris/actions-hugo/issues/357)
* bump lint-staged from 10.2.2 to 10.2.4 ([2cdb0da](https://github.com/peaceiris/actions-hugo/commit/2cdb0da4debc0c98061b4e09c6547ddd2db1834c))
* bump lint-staged from 10.2.4 to 10.2.6 ([b920e24](https://github.com/peaceiris/actions-hugo/commit/b920e249f6a1acb1fbff7ff6e8711916869a27c3))
* bump lint-staged from 10.2.6 to 10.2.7 ([592603c](https://github.com/peaceiris/actions-hugo/commit/592603c7c2a30e3a450363117c41a7ec358f2d06))
* bump lint-staged from 10.2.7 to 10.2.8 (#346) ([533dde8](https://github.com/peaceiris/actions-hugo/commit/533dde857531b95164d8d5f21462187e581618a9)), closes [#346](https://github.com/peaceiris/actions-hugo/issues/346)
* bump lint-staged from 10.2.8 to 10.2.9 (#349) ([dcf08e2](https://github.com/peaceiris/actions-hugo/commit/dcf08e2fd2c712501ecb05cbc2005a1e4de06092)), closes [#349](https://github.com/peaceiris/actions-hugo/issues/349)
* bump lint-staged from 10.2.9 to 10.2.10 (#356) ([914abda](https://github.com/peaceiris/actions-hugo/commit/914abda3d8422bc3d850bb3651f7540dd714036a)), closes [#356](https://github.com/peaceiris/actions-hugo/issues/356)
* bump node from 12.16.1 to 12.16.3 (#288) ([32e3df2](https://github.com/peaceiris/actions-hugo/commit/32e3df2806a568e829146259abc0965797b6cf59)), closes [#288](https://github.com/peaceiris/actions-hugo/issues/288)
* bump node from 12.16.3 to 12.18.0 (#353) ([09cf940](https://github.com/peaceiris/actions-hugo/commit/09cf94008e15f8629028e708ebf5049286556670)), closes [#353](https://github.com/peaceiris/actions-hugo/issues/353)
* bump node from 12.18.0 to 12.18.1 (#360) ([7160613](https://github.com/peaceiris/actions-hugo/commit/71606133495c4ec46bff6f3096e9f98e62a24e05)), closes [#360](https://github.com/peaceiris/actions-hugo/issues/360)
* bump standard-version from 7.1.0 to 8.0.0 ([73356f0](https://github.com/peaceiris/actions-hugo/commit/73356f0ae57cb8fb165a929f8e9637120334b86a))
* bump ts-jest from 25.4.0 to 25.5.0 ([0c93074](https://github.com/peaceiris/actions-hugo/commit/0c93074aabfd1477a93af132e2e6ca8b397919d9))
* bump ts-jest from 25.5.0 to 25.5.1 ([d7c46d0](https://github.com/peaceiris/actions-hugo/commit/d7c46d09c935763ad519d2f34290f4ac6be38ccb))
* bump typescript from 3.8.3 to 3.9.2 ([b555054](https://github.com/peaceiris/actions-hugo/commit/b55505415753f290f1e3e93b92826257bd21aaee))
* bump typescript from 3.9.2 to 3.9.3 ([d3ebe5d](https://github.com/peaceiris/actions-hugo/commit/d3ebe5d657f863b5879b6fb2df7e6ba6bb2e983f))
* bump typescript from 3.9.3 to 3.9.5 (#348) ([658d24b](https://github.com/peaceiris/actions-hugo/commit/658d24bb3e335ec5695aa87bc6b2c02cd78f0028)), closes [#348](https://github.com/peaceiris/actions-hugo/issues/348)
### docs
* add Babel ([b99235e](https://github.com/peaceiris/actions-hugo/commit/b99235e60ed6e4cbf138aa9167f567a4a6c664e6))
* Add new section for asciidoctor ([71fe6db](https://github.com/peaceiris/actions-hugo/commit/71fe6dbc7f2bd0596392fe20805753a67b00af1f)), closes [#342](https://github.com/peaceiris/actions-hugo/issues/342)
* Add new section for google/docsy ([e3045c5](https://github.com/peaceiris/actions-hugo/commit/e3045c5fb50cfbacbc0d9b9ce287d7e112f56e00))
* bump hugo from 0.68.3 to 0.71.0 ([cb3ccf6](https://github.com/peaceiris/actions-hugo/commit/cb3ccf6f428dc8320595af305c6531679b343eb1))
* bump hugo to 0.71.1 ([cb1a02b](https://github.com/peaceiris/actions-hugo/commit/cb1a02bb3535bef17b19b5811658d61b60377bcc))
* bump hugo to 0.71.1 ([ad41861](https://github.com/peaceiris/actions-hugo/commit/ad41861beb535cc414f8a2ff238b28aa334db49a))
* remove Dependabot status badge ([aa5de43](https://github.com/peaceiris/actions-hugo/commit/aa5de43b2b75066241428b66dcf9204351ab680b))
* update ToC ([dd33407](https://github.com/peaceiris/actions-hugo/commit/dd334074ce1f4f6c0e3599c0c913426bac4575fe))
* update url ([0f35b33](https://github.com/peaceiris/actions-hugo/commit/0f35b33b7371b0c4b115eeb0ea6acdb9cd2e0e78))
### fix
* Wrap an entrypoint by async to handle exceptions correctly (#363) ([54af4c1](https://github.com/peaceiris/actions-hugo/commit/54af4c1320eee4b2c9c6d46b4bede3f593b1bc50)), closes [#363](https://github.com/peaceiris/actions-hugo/issues/363)
## [2.4.11](https://github.com/peaceiris/actions-hugo/compare/v2.4.10...v2.4.11) (2020-04-29)

View File

@@ -13,7 +13,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
WORKDIR /git
ENV GIT_VERSION="2.26.1"
ENV GIT_VERSION="2.27.0"
RUN wget -q "https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz" && \
tar -zxf "./v${GIT_VERSION}.tar.gz" && \
rm "./v${GIT_VERSION}.tar.gz" && \

112
README.md
View File

@@ -3,7 +3,6 @@
[![GitHub release date](https://img.shields.io/github/release-date/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases)
[![Release Feed](https://img.shields.io/badge/release-feed-yellow)](https://github.com/peaceiris/actions-hugo/releases.atom)
![Test](https://github.com/peaceiris/actions-hugo/workflows/Test/badge.svg?branch=master&event=push)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=peaceiris/actions-hugo)](https://dependabot.com)
[![CodeFactor](https://www.codefactor.io/repository/github/peaceiris/actions-hugo/badge)](https://www.codefactor.io/repository/github/peaceiris/actions-hugo)
[![codecov](https://codecov.io/gh/peaceiris/actions-hugo/branch/master/graph/badge.svg)](https://codecov.io/gh/peaceiris/actions-hugo)
@@ -48,6 +47,8 @@ Thanks to this change, we can complete this action in less than a few seconds.
- [⭐️ Use the latest version of Hugo](#%EF%B8%8F-use-the-latest-version-of-hugo)
- [Tips](#tips)
- [⭐️ Read Hugo version from file](#%EF%B8%8F-read-hugo-version-from-file)
- [⭐️ Workflow for autoprefixer and postcss-cli](#%EF%B8%8F-workflow-for-autoprefixer-and-postcss-cli)
- [⭐️ Workflow for asciidoctor](#%EF%B8%8F-workflow-for-asciidoctor)
- [CHANGELOG](#changelog)
- [License](#license)
- [About Maintainer](#about-maintainer)
@@ -82,13 +83,13 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.68.3'
hugo-version: '0.71.1'
# extended: true
- name: Build
@@ -117,7 +118,7 @@ Set `extended: true` to use a Hugo extended version.
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.68.3'
hugo-version: '0.71.1'
extended: true
```
@@ -149,7 +150,7 @@ How to sync a Hugo version between a Docker Compose and a GitHub Actions workflo
Write a `HUGO_VERSION` to the `.env` file like the following and push it to a remote branch.
```sh
HUGO_VERSION=0.68.3
HUGO_VERSION=0.71.1
```
Next, add a step to read a Hugo version from the `.env` file.
@@ -192,6 +193,107 @@ The alpine base Hugo Docker image is provided on the following repository.
> [peaceiris/hugo-extended-docker: Hugo alpine base Docker image (Hugo extended and Hugo Modules)](https://github.com/peaceiris/hugo-extended-docker)
### ⭐️ Workflow for autoprefixer and postcss-cli
Here is an example workflow for the [google/docsy] Hugo theme.
This theme needs `autoprefixer` and `postcss-cli` to build a project.
The following workflow is tested on [google/docsy-example].
[google/docsy]: https://github.com/google/docsy
[google/docsy-example]: https://github.com/google/docsy-example
A workflow for the Hugo Babel pipeline is also the same as follows.
```yaml
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive # Fetch the Docsy theme
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.71.1'
extended: true
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```
### ⭐️ Workflow for asciidoctor
Here is an example workflow for a Hugo project using `asciidoctor`.
```yaml
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.71.1'
extended: true
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: gem install asciidoctor
- name: Run Hugo
run: |
alias asciidoctor="asciidoctor --attribute=experimental=true --attribute=icons=font"
hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>

View File

@@ -19,7 +19,13 @@ module.exports =
/******/ };
/******/
/******/ // Execute the module function
/******/ var threw = true;
/******/ try {
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ threw = false;
/******/ } finally {
/******/ if(threw) delete installedModules[moduleId];
/******/ }
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
@@ -354,13 +360,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const os = __webpack_require__(87);
const events = __webpack_require__(614);
const child = __webpack_require__(129);
const path = __webpack_require__(622);
const io = __webpack_require__(1);
const ioUtil = __webpack_require__(672);
const os = __importStar(__webpack_require__(87));
const events = __importStar(__webpack_require__(614));
const child = __importStar(__webpack_require__(129));
const path = __importStar(__webpack_require__(622));
const io = __importStar(__webpack_require__(1));
const ioUtil = __importStar(__webpack_require__(672));
/* eslint-disable @typescript-eslint/unbound-method */
const IS_WINDOWS = process.platform === 'win32';
/*
@@ -804,6 +817,12 @@ class ToolRunner extends events.EventEmitter {
resolve(exitCode);
}
});
if (this.options.input) {
if (!cp.stdin) {
throw new Error('child process missing stdin');
}
cp.stdin.end(this.options.input);
}
});
});
}
@@ -949,22 +968,8 @@ module.exports = eval("require")("encoding");
/***/ }),
/***/ 87:
/***/ (function(module) {
module.exports = require("os");
/***/ }),
/***/ 129:
/***/ (function(module) {
module.exports = require("child_process");
/***/ }),
/***/ 131:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
/***/ 31:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -985,6 +990,146 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const semver = __importStar(__webpack_require__(550));
const core_1 = __webpack_require__(470);
// needs to be require for core node modules to be mocked
/* eslint @typescript-eslint/no-require-imports: 0 */
const os = __webpack_require__(87);
const cp = __webpack_require__(129);
const fs = __webpack_require__(747);
function _findMatch(versionSpec, stable, candidates, archFilter) {
return __awaiter(this, void 0, void 0, function* () {
const platFilter = os.platform();
let result;
let match;
let file;
for (const candidate of candidates) {
const version = candidate.version;
core_1.debug(`check ${version} satisfies ${versionSpec}`);
if (semver.satisfies(version, versionSpec) &&
(!stable || candidate.stable === stable)) {
file = candidate.files.find(item => {
core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
let chk = item.arch === archFilter && item.platform === platFilter;
if (chk && item.platform_version) {
const osVersion = module.exports._getOsVersion();
if (osVersion === item.platform_version) {
chk = true;
}
else {
chk = semver.satisfies(osVersion, item.platform_version);
}
}
return chk;
});
if (file) {
core_1.debug(`matched ${candidate.version}`);
match = candidate;
break;
}
}
}
if (match && file) {
// clone since we're mutating the file list to be only the file that matches
result = Object.assign({}, match);
result.files = [file];
}
return result;
});
}
exports._findMatch = _findMatch;
function _getOsVersion() {
// TODO: add windows and other linux, arm variants
// right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python)
const plat = os.platform();
let version = '';
if (plat === 'darwin') {
version = cp.execSync('sw_vers -productVersion').toString();
}
else if (plat === 'linux') {
// lsb_release process not in some containers, readfile
// Run cat /etc/lsb-release
// DISTRIB_ID=Ubuntu
// DISTRIB_RELEASE=18.04
// DISTRIB_CODENAME=bionic
// DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
const lsbContents = module.exports._readLinuxVersionFile();
if (lsbContents) {
const lines = lsbContents.split('\n');
for (const line of lines) {
const parts = line.split('=');
if (parts.length === 2 && parts[0].trim() === 'DISTRIB_RELEASE') {
version = parts[1].trim();
break;
}
}
}
}
return version;
}
exports._getOsVersion = _getOsVersion;
function _readLinuxVersionFile() {
const lsbFile = '/etc/lsb-release';
let contents = '';
if (fs.existsSync(lsbFile)) {
contents = fs.readFileSync(lsbFile).toString();
}
return contents;
}
exports._readLinuxVersionFile = _readLinuxVersionFile;
//# sourceMappingURL=manifest.js.map
/***/ }),
/***/ 87:
/***/ (function(module) {
module.exports = require("os");
/***/ }),
/***/ 129:
/***/ (function(module) {
module.exports = require("child_process");
/***/ }),
/***/ 131:
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.run = exports.showVersion = void 0;
const core = __importStar(__webpack_require__(470));
const exec = __importStar(__webpack_require__(986));
const get_latest_version_1 = __webpack_require__(307);
@@ -1348,6 +1493,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLatestVersion = exports.getURL = void 0;
const node_fetch_1 = __importDefault(__webpack_require__(454));
function getURL(org, repo, api) {
let url = '';
@@ -1385,22 +1531,45 @@ exports.getLatestVersion = getLatestVersion;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const main = __importStar(__webpack_require__(131));
(() => __awaiter(void 0, void 0, void 0, function* () {
try {
main.run();
yield main.run();
}
catch (e) {
core.setFailed(`Action failed with error ${e}`);
core.setFailed(`Action failed with error ${e.message}`);
}
}))();
/***/ }),
@@ -1493,14 +1662,28 @@ class Command {
return cmdStr;
}
}
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string
*/
function toCommandValue(input) {
if (input === null || input === undefined) {
return '';
}
else if (typeof input === 'string' || input instanceof String) {
return input;
}
return JSON.stringify(input);
}
exports.toCommandValue = toCommandValue;
function escapeData(s) {
return (s || '')
return toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A');
}
function escapeProperty(s) {
return (s || '')
return toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A')
@@ -3231,11 +3414,13 @@ var ExitCode;
/**
* Sets env variable for this action and future actions in the job
* @param name the name of the variable to set
* @param val the value of the variable
* @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function exportVariable(name, val) {
process.env[name] = val;
command_1.issueCommand('set-env', { name }, val);
const convertedVal = command_1.toCommandValue(val);
process.env[name] = convertedVal;
command_1.issueCommand('set-env', { name }, convertedVal);
}
exports.exportVariable = exportVariable;
/**
@@ -3274,12 +3459,22 @@ exports.getInput = getInput;
* Sets the value of an output.
*
* @param name name of the output to set
* @param value value to store
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setOutput(name, value) {
command_1.issueCommand('set-output', { name }, value);
}
exports.setOutput = setOutput;
/**
* Enables or disables the echoing of commands into stdout for the rest of the step.
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
*
*/
function setCommandEcho(enabled) {
command_1.issue('echo', enabled ? 'on' : 'off');
}
exports.setCommandEcho = setCommandEcho;
//-----------------------------------------------------------------------
// Results
//-----------------------------------------------------------------------
@@ -3313,18 +3508,18 @@ function debug(message) {
exports.debug = debug;
/**
* Adds an error issue
* @param message error issue message
* @param message error issue message. Errors will be converted to string via toString()
*/
function error(message) {
command_1.issue('error', message);
command_1.issue('error', message instanceof Error ? message.toString() : message);
}
exports.error = error;
/**
* Adds an warning issue
* @param message warning issue message
* @param message warning issue message. Errors will be converted to string via toString()
*/
function warning(message) {
command_1.issue('warning', message);
command_1.issue('warning', message instanceof Error ? message.toString() : message);
}
exports.warning = warning;
/**
@@ -3382,8 +3577,9 @@ exports.group = group;
* Saves state for current action, the state can only be retrieved by this action's post job execution.
*
* @param name name of the state to store
* @param value value to store
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function saveState(name, value) {
command_1.issueCommand('save-state', { name }, value);
}
@@ -3430,6 +3626,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const io = __importStar(__webpack_require__(1));
const fs = __importStar(__webpack_require__(747));
const mm = __importStar(__webpack_require__(31));
const os = __importStar(__webpack_require__(87));
const path = __importStar(__webpack_require__(622));
const httpm = __importStar(__webpack_require__(539));
@@ -3455,9 +3652,10 @@ const userAgent = 'actions/tool-cache';
*
* @param url url of tool to download
* @param dest path to download tool
* @param auth authorization header
* @returns path to downloaded tool
*/
function downloadTool(url, dest) {
function downloadTool(url, dest, auth) {
return __awaiter(this, void 0, void 0, function* () {
dest = dest || path.join(_getTempDirectory(), v4_1.default());
yield io.mkdirP(path.dirname(dest));
@@ -3468,7 +3666,7 @@ function downloadTool(url, dest) {
const maxSeconds = _getGlobal('TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS', 20);
const retryHelper = new retry_helper_1.RetryHelper(maxAttempts, minSeconds, maxSeconds);
return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
return yield downloadToolAttempt(url, dest || '');
return yield downloadToolAttempt(url, dest || '', auth);
}), (err) => {
if (err instanceof HTTPError && err.httpStatusCode) {
// Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests
@@ -3484,7 +3682,7 @@ function downloadTool(url, dest) {
});
}
exports.downloadTool = downloadTool;
function downloadToolAttempt(url, dest) {
function downloadToolAttempt(url, dest, auth) {
return __awaiter(this, void 0, void 0, function* () {
if (fs.existsSync(dest)) {
throw new Error(`Destination file path ${dest} already exists`);
@@ -3493,7 +3691,14 @@ function downloadToolAttempt(url, dest) {
const http = new httpm.HttpClient(userAgent, [], {
allowRetries: false
});
const response = yield http.get(url);
let headers;
if (auth) {
core.debug('set auth');
headers = {
authorization: auth
};
}
const response = yield http.get(url, headers);
if (response.message.statusCode !== 200) {
const err = new HTTPError(response.message.statusCode);
core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
@@ -3548,9 +3753,10 @@ function extract7z(file, dest, _7zPath) {
process.chdir(dest);
if (_7zPath) {
try {
const logLevel = core.isDebug() ? '-bb1' : '-bb0';
const args = [
'x',
'-bb1',
logLevel,
'-bd',
'-sccUTF-8',
file
@@ -3626,7 +3832,16 @@ function extractTar(file, dest, flags = 'xz') {
core.debug(versionOutput.trim());
const isGnuTar = versionOutput.toUpperCase().includes('GNU TAR');
// Initialize args
const args = [flags];
let args;
if (flags instanceof Array) {
args = flags;
}
else {
args = [flags];
}
if (core.isDebug() && !flags.includes('v')) {
args.push('-v');
}
let destArg = dest;
let fileArg = file;
if (IS_WINDOWS && isGnuTar) {
@@ -3676,7 +3891,7 @@ function extractZipWin(file, dest) {
const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
const command = `$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}')`;
// run powershell
const powershellPath = yield io.which('powershell');
const powershellPath = yield io.which('powershell', true);
const args = [
'-NoLogo',
'-Sta',
@@ -3692,8 +3907,12 @@ function extractZipWin(file, dest) {
}
function extractZipNix(file, dest) {
return __awaiter(this, void 0, void 0, function* () {
const unzipPath = yield io.which('unzip');
yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest });
const unzipPath = yield io.which('unzip', true);
const args = [file];
if (!core.isDebug()) {
args.unshift('-q');
}
yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
});
}
/**
@@ -3821,6 +4040,51 @@ function findAllVersions(toolName, arch) {
return versions;
}
exports.findAllVersions = findAllVersions;
function getManifestFromRepo(owner, repo, auth, branch = 'master') {
return __awaiter(this, void 0, void 0, function* () {
let releases = [];
const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;
const http = new httpm.HttpClient('tool-cache');
const headers = {};
if (auth) {
core.debug('set auth');
headers.authorization = auth;
}
const response = yield http.getJson(treeUrl, headers);
if (!response.result) {
return releases;
}
let manifestUrl = '';
for (const item of response.result.tree) {
if (item.path === 'versions-manifest.json') {
manifestUrl = item.url;
break;
}
}
headers['accept'] = 'application/vnd.github.VERSION.raw';
let versionsRaw = yield (yield http.get(manifestUrl, headers)).readBody();
if (versionsRaw) {
// shouldn't be needed but protects against invalid json saved with BOM
versionsRaw = versionsRaw.replace(/^\uFEFF/, '');
try {
releases = JSON.parse(versionsRaw);
}
catch (_a) {
core.debug('Invalid json');
}
}
return releases;
});
}
exports.getManifestFromRepo = getManifestFromRepo;
function findFromManifest(versionSpec, stable, manifest, archFilter = os.arch()) {
return __awaiter(this, void 0, void 0, function* () {
// wrap the internal impl
const match = yield mm._findMatch(versionSpec, stable, manifest, archFilter);
return match;
});
}
exports.findFromManifest = findFromManifest;
function _createExtractFolder(dest) {
return __awaiter(this, void 0, void 0, function* () {
if (!dest) {
@@ -6294,6 +6558,7 @@ function isUnixExecutable(stats) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Action = exports.Tool = void 0;
var Tool;
(function (Tool) {
Tool["Name"] = "Hugo";
@@ -6447,6 +6712,25 @@ exports.default = getURL;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
@@ -6456,17 +6740,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.installer = exports.createBinDir = exports.createTempDir = exports.createWorkDir = exports.getHomeDir = void 0;
const core = __importStar(__webpack_require__(470));
const tc = __importStar(__webpack_require__(533));
const io = __importStar(__webpack_require__(1));
@@ -6700,8 +6978,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const tr = __webpack_require__(9);
const tr = __importStar(__webpack_require__(9));
/**
* Exec a command.
* Output will be streamed to the live console.

2161
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "actions-hugo",
"version": "2.4.11",
"version": "2.4.12",
"description": "GitHub Actions for Hugo",
"main": "lib/index.js",
"engines": {
@@ -30,6 +30,9 @@
"src/**/*.ts": [
"prettier --check",
"eslint"
],
"README.md": [
"npx doctoc@1.4.0 --github"
]
},
"repository": {
@@ -51,29 +54,29 @@
},
"homepage": "https://github.com/peaceiris/actions-hugo#readme",
"dependencies": {
"@actions/core": "^1.2.3",
"@actions/exec": "^1.0.3",
"@actions/core": "^1.2.4",
"@actions/exec": "^1.0.4",
"@actions/io": "^1.0.2",
"@actions/tool-cache": "^1.3.4",
"@actions/tool-cache": "^1.5.5",
"node-fetch": "^2.6.0"
},
"devDependencies": {
"@types/jest": "^25.2.1",
"@types/jest": "^26.0.0",
"@types/node": "~12",
"@types/node-fetch": "^2.5.7",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.30.0",
"@zeit/ncc": "^0.22.1",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@zeit/ncc": "^0.22.3",
"eslint": "^6.8.0",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-jest": "^23.13.2",
"husky": "^4.2.5",
"jest": "^25.5.0",
"jest-circus": "^25.5.0",
"lint-staged": "^10.1.6",
"jest": "^25.5.4",
"jest-circus": "^26.0.1",
"lint-staged": "^10.2.11",
"nock": "^12.0.3",
"prettier": "2.0.5",
"standard-version": "^7.1.0",
"ts-jest": "^25.4.0",
"typescript": "^3.8.3"
"standard-version": "^8.0.0",
"ts-jest": "^25.5.1",
"typescript": "^3.9.5"
}
}

View File

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