mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-05-10 19:25:29 +08:00
Compare commits
No commits in common. "main" and "v2.4.13" have entirely different histories.
36
.github/ISSUE_TEMPLATE/1_user_support.md
vendored
Normal file
36
.github/ISSUE_TEMPLATE/1_user_support.md
vendored
Normal 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.
|
52
.github/ISSUE_TEMPLATE/1_user_support.yml
vendored
52
.github/ISSUE_TEMPLATE/1_user_support.yml
vendored
@ -1,52 +0,0 @@
|
||||
name: User Support
|
||||
description: Questions for this action
|
||||
title: "support: "
|
||||
labels: support
|
||||
assignees: peaceiris
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value:
|
||||
Please note we will close your issue without comment if you do not fill out the issue checklist below and provide ALL the requested information.
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Checklist
|
||||
description: Checklist before creating an issue.
|
||||
options:
|
||||
- label: "I am using the latest version of this action."
|
||||
required: true
|
||||
- label: "I have read the latest README and followed the instructions."
|
||||
required: true
|
||||
- label: "I have read the latest GitHub Actions official documentation and learned the basic spec and concepts."
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe your question
|
||||
description: A clear and concise description of what the question is.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Relevant links
|
||||
description:
|
||||
Links to your public repository, YAML config file, and YAML workflow file.
|
||||
Please use [a permanent link](https://docs.github.com/en/github/managing-files-in-a-repository/managing-files-on-github/getting-permanent-links-to-files), not a default branch.
|
||||
render: markdown
|
||||
value: |
|
||||
Public repository:
|
||||
YAML config:
|
||||
YAML workflow:
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Relevant log output
|
||||
description: Copy and paste any relevant log output here.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional context.
|
||||
description: Write any other context about the question here.
|
||||
validations:
|
||||
required: true
|
39
.github/ISSUE_TEMPLATE/2_bug_report.md
vendored
Normal file
39
.github/ISSUE_TEMPLATE/2_bug_report.md
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
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.
|
52
.github/ISSUE_TEMPLATE/2_bug_report.txt
vendored
52
.github/ISSUE_TEMPLATE/2_bug_report.txt
vendored
@ -1,52 +0,0 @@
|
||||
name: Bug Report
|
||||
description: Try the User Support Issue Template first.
|
||||
title: 'bug: '
|
||||
labels: bug
|
||||
assignees: peaceiris
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value:
|
||||
Please note we will close your issue without comment if you do not fill out the issue checklist below and provide ALL the requested information.
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Checklist
|
||||
description: Checklist before creating an issue.
|
||||
options:
|
||||
- label: "I am using the latest version of this action."
|
||||
required: true
|
||||
- label: "I have read the latest README and followed the instructions."
|
||||
required: true
|
||||
- label: "I have read the latest GitHub Actions official documentation and learned the basic spec and concepts."
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Describe the bug"
|
||||
description: "A clear and concise description of what the bug is."
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Relevant links
|
||||
description:
|
||||
Links to your public repository, YAML config file, and YAML workflow file.
|
||||
Please use [a permanent link](https://docs.github.com/en/github/managing-files-in-a-repository/managing-files-on-github/getting-permanent-links-to-files), not a default branch.
|
||||
render: markdown
|
||||
value: |
|
||||
Public repository:
|
||||
YAML config:
|
||||
YAML workflow:
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Relevant log output
|
||||
description: Copy and paste any relevant log output here.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional context.
|
||||
description: Write any other context about the question here.
|
||||
validations:
|
||||
required: true
|
26
.github/ISSUE_TEMPLATE/3_proposal.md
vendored
Normal file
26
.github/ISSUE_TEMPLATE/3_proposal.md
vendored
Normal 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.
|
45
.github/ISSUE_TEMPLATE/3_proposal.yml
vendored
45
.github/ISSUE_TEMPLATE/3_proposal.yml
vendored
@ -1,45 +0,0 @@
|
||||
name: Proposal
|
||||
description: Suggest an idea for this project
|
||||
title: 'proposal: '
|
||||
labels: proposal
|
||||
assignees: peaceiris
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value:
|
||||
Please note we will close your issue without comment if you do not fill out the issue checklist below and provide ALL the requested information.
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Checklist
|
||||
description: Checklist before creating an issue.
|
||||
options:
|
||||
- label: "I am using the latest version of this action."
|
||||
required: true
|
||||
- label: "I have read the latest README and followed the instructions."
|
||||
required: true
|
||||
- label: "I have read the latest GitHub Actions official documentation and learned the basic spec and concepts."
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Describe your proposal"
|
||||
description: "A clear and concise description of what the proposal is."
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Describe the solution you'd like"
|
||||
description: "A clear and concise description of what you want to happen."
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Describe alternatives you've considered"
|
||||
description: "A clear and concise description of any alternative solutions or features you've considered."
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Additional context"
|
||||
description: "Add any other context or screenshots about the feature request here."
|
||||
validations:
|
||||
required: true
|
5
.github/ISSUE_TEMPLATE/config.yml
vendored
5
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -1,11 +1,8 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: GitHub Actions - GitHub Support Community Forum
|
||||
url: https://github.community/c/code-to-cloud/github-actions/41
|
||||
url: https://github.community/c/github-actions
|
||||
about: Please ask questions about GitHub Actions here.
|
||||
- name: Hugo Community Forum
|
||||
url: https://discourse.gohugo.io/
|
||||
about: Please ask questions about Hugo here.
|
||||
- name: GitHub Actions Documentation
|
||||
url: https://docs.github.com/en/actions
|
||||
about: GitHub Actions official documentation here.
|
||||
|
7
.github/dependabot.yml
vendored
7
.github/dependabot.yml
vendored
@ -8,8 +8,11 @@ updates:
|
||||
timezone: Japan
|
||||
labels:
|
||||
- "dependencies"
|
||||
allow:
|
||||
- dependency-type: "production"
|
||||
ignore:
|
||||
- dependency-name: "@types/node"
|
||||
versions:
|
||||
- ">= 13.a, < 14"
|
||||
- ">= 14.a, < 15"
|
||||
commit-message:
|
||||
prefix: deps
|
||||
|
||||
|
11
.github/label-commenter-config.yml
vendored
11
.github/label-commenter-config.yml
vendored
@ -30,14 +30,3 @@ labels:
|
||||
labeled:
|
||||
issue:
|
||||
body: This issue is easy for contributing. Everyone can work on this.
|
||||
- name: resolved
|
||||
labeled:
|
||||
issue:
|
||||
body: |
|
||||
This issue has been **LOCKED** because of it being resolved!
|
||||
|
||||
The issue has been fixed and is therefore considered resolved.
|
||||
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.
|
||||
action: close
|
||||
locking: lock
|
||||
lock_reason: resolved
|
||||
|
15
.github/workflows/codeql-analysis.yml
vendored
15
.github/workflows/codeql-analysis.yml
vendored
@ -8,17 +8,22 @@ on:
|
||||
|
||||
jobs:
|
||||
CodeQL-Build:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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@v3
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: javascript
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
uses: github/codeql-action/analyze@v1
|
||||
|
16
.github/workflows/dependency-review.yml
vendored
16
.github/workflows/dependency-review.yml
vendored
@ -1,16 +0,0 @@
|
||||
# Source repository: https://github.com/actions/dependency-review-action
|
||||
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
||||
name: 'Dependency Review'
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
dependency-review:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/dependency-review-action@v4
|
16
.github/workflows/dev-image.yml
vendored
16
.github/workflows/dev-image.yml
vendored
@ -22,12 +22,16 @@ on:
|
||||
- 'Makefile'
|
||||
|
||||
jobs:
|
||||
dev-image-test:
|
||||
runs-on: ubuntu-22.04
|
||||
skipci:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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
|
||||
- run: make build
|
||||
- run: make cirun cmd="npm ci"
|
||||
# - run: make ciall
|
||||
- run: make cirun cmd="npm run format:check"
|
||||
- run: make cirun cmd="npm run lint"
|
||||
- run: make ciall
|
||||
|
6
.github/workflows/label-commenter.yml
vendored
6
.github/workflows/label-commenter.yml
vendored
@ -12,14 +12,14 @@ on:
|
||||
|
||||
jobs:
|
||||
comment:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: main
|
||||
|
||||
- name: Label Commenter
|
||||
uses: peaceiris/actions-label-commenter@v1.10.0
|
||||
uses: peaceiris/actions-label-commenter@v1.6.1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# config_file: .github/label-commenter-config.yml
|
||||
|
@ -6,7 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
purge:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
|
||||
- run: >
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -7,9 +7,9 @@ on:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Dump GitHub context
|
||||
env:
|
||||
|
7
.github/workflows/test-action.yml
vendored
7
.github/workflows/test-action.yml
vendored
@ -12,7 +12,8 @@ jobs:
|
||||
matrix:
|
||||
os:
|
||||
- 'ubuntu-20.04'
|
||||
- 'ubuntu-latest'
|
||||
- 'ubuntu-18.04'
|
||||
- 'ubuntu-16.04'
|
||||
- 'macos-latest'
|
||||
- 'windows-latest'
|
||||
hugo-version:
|
||||
@ -22,10 +23,10 @@ jobs:
|
||||
- true
|
||||
- false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3.0.0
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: ${{ matrix.hugo-version }}
|
||||
extended: ${{ matrix.extended }}
|
||||
|
30
.github/workflows/test.yml
vendored
30
.github/workflows/test.yml
vendored
@ -14,42 +14,48 @@ jobs:
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- 'ubuntu-22.04'
|
||||
- 'ubuntu-20.04'
|
||||
- 'ubuntu-latest'
|
||||
- 'ubuntu-18.04'
|
||||
- 'ubuntu-16.04'
|
||||
- 'macos-latest'
|
||||
- 'windows-latest'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
- name: Read .nvmrc
|
||||
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
|
||||
id: nvm
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2.1.2
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
node-version: '${{ steps.nvm.outputs.NVMRC }}'
|
||||
|
||||
- run: npm i -g npm
|
||||
- run: npm ci
|
||||
|
||||
- name: Run prettier
|
||||
if: startsWith(matrix.os, 'ubuntu-22.04')
|
||||
if: startsWith(matrix.os, 'ubuntu-18.04')
|
||||
run: npm run format:check
|
||||
|
||||
- name: Run eslint
|
||||
if: startsWith(matrix.os, 'ubuntu-22.04')
|
||||
if: startsWith(matrix.os, 'ubuntu-18.04')
|
||||
run: npm run lint
|
||||
|
||||
- name: Run ncc
|
||||
if: startsWith(matrix.os, 'ubuntu-22.04')
|
||||
if: startsWith(matrix.os, 'ubuntu-18.04')
|
||||
run: npm run build
|
||||
|
||||
- run: npm test
|
||||
|
||||
- name: Upload test coverage as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: coverage-${{ matrix.os }}
|
||||
path: coverage
|
||||
|
||||
- uses: codecov/codecov-action@v5
|
||||
- uses: codecov/codecov-action@v1.0.13
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
26
.github/workflows/update-major-tag.yml
vendored
26
.github/workflows/update-major-tag.yml
vendored
@ -2,20 +2,22 @@ name: Update major tag
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Update major tag
|
||||
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}"
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- 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}"
|
||||
|
1
.husky/.gitignore
vendored
1
.husky/.gitignore
vendored
@ -1 +0,0 @@
|
||||
_
|
@ -1,2 +0,0 @@
|
||||
npm ci
|
||||
git remote prune origin
|
@ -1 +0,0 @@
|
||||
npx lint-staged
|
200
CHANGELOG.md
200
CHANGELOG.md
@ -2,206 +2,6 @@
|
||||
|
||||
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.
|
||||
|
||||
# [3.0.0](https://github.com/peaceiris/actions-hugo/compare/v2.6.0...v3.0.0) (2024-04-02)
|
||||
|
||||
|
||||
### build
|
||||
|
||||
* node 20.11.1 ([01bd2b1](https://github.com/peaceiris/actions-hugo/commit/01bd2b16cc6cadbc63cba9bddb36c689f462c2db))
|
||||
|
||||
### chore
|
||||
|
||||
* npm audit fix ([966dfad](https://github.com/peaceiris/actions-hugo/commit/966dfad3859a5cfc80b6e36761b0b4c7b3dd5e0c))
|
||||
* revert version ([d85452e](https://github.com/peaceiris/actions-hugo/commit/d85452eadfba7065bf8c0601c8c22e427982d108))
|
||||
|
||||
### ci
|
||||
|
||||
* bump actions/dependency-review-action from 2 to 3 (#622) ([844f873](https://github.com/peaceiris/actions-hugo/commit/844f8735f61722d43677c23cbeae4283af7b554a)), closes [#622](https://github.com/peaceiris/actions-hugo/issues/622)
|
||||
* bump actions/setup-node from 3.5.1 to 3.6.0 (#625) ([3fa8fd6](https://github.com/peaceiris/actions-hugo/commit/3fa8fd6cee4e03774c4e900dca8b766d1cdcae93)), closes [#625](https://github.com/peaceiris/actions-hugo/issues/625)
|
||||
* bump checkout to v4 (#639) ([aadc3a9](https://github.com/peaceiris/actions-hugo/commit/aadc3a98dfd3437f8f97d436ea91b82a73dc85dd)), closes [#639](https://github.com/peaceiris/actions-hugo/issues/639)
|
||||
* bump peaceiris/actions-hugo from 2.5.0 to 2.6.0 (#621) ([b1822b6](https://github.com/peaceiris/actions-hugo/commit/b1822b6abe1a489f9ba7b9b664d916aeafd3e592)), closes [#621](https://github.com/peaceiris/actions-hugo/issues/621)
|
||||
|
||||
### docs
|
||||
|
||||
* bump ruby version to 3.2 (#629) ([7c4b9f1](https://github.com/peaceiris/actions-hugo/commit/7c4b9f1f99c72728600c292c1f0e7138cc3a8865)), closes [#629](https://github.com/peaceiris/actions-hugo/issues/629)
|
||||
* bump versions (#628) ([7652d53](https://github.com/peaceiris/actions-hugo/commit/7652d5336914f4ecd975baff70cd3c4b5070678b)), closes [#628](https://github.com/peaceiris/actions-hugo/issues/628)
|
||||
* remove braces (#634) ([31c4654](https://github.com/peaceiris/actions-hugo/commit/31c46541ceabb0656cd9e943914ab1701da3e788)), closes [#634](https://github.com/peaceiris/actions-hugo/issues/634)
|
||||
* replace set-output with GITHUB_OUTPUT ([3d92e2f](https://github.com/peaceiris/actions-hugo/commit/3d92e2fd556bef7470d7e2a6aea63141183c20a6))
|
||||
* update cache usage (#636) ([c0084b0](https://github.com/peaceiris/actions-hugo/commit/c0084b0763db3a37f864755d9174f2a6f3e0c1c5)), closes [#636](https://github.com/peaceiris/actions-hugo/issues/636)
|
||||
|
||||
### feat
|
||||
|
||||
* bump to use node20 runtime (#641) ([c57490a](https://github.com/peaceiris/actions-hugo/commit/c57490a8b04136ae58ab5866a93d3db2f0fa0945)), closes [#641](https://github.com/peaceiris/actions-hugo/issues/641)
|
||||
|
||||
|
||||
|
||||
# [2.6.0](https://github.com/peaceiris/actions-hugo/compare/v2.5.0...v2.6.0) (2022-10-23)
|
||||
|
||||
|
||||
### chore
|
||||
|
||||
* Convert templates to YAML issue forms ([5fb41c8](https://github.com/peaceiris/actions-hugo/commit/5fb41c87da82b4f59a6198b0752b2bca9078d4a4))
|
||||
* Fix prettier (#535) ([5fa8f53](https://github.com/peaceiris/actions-hugo/commit/5fa8f53e895b6475798170197409983ae10d261c)), closes [#535](https://github.com/peaceiris/actions-hugo/issues/535)
|
||||
* fix year (#613) ([8da14cc](https://github.com/peaceiris/actions-hugo/commit/8da14cc542424be0081be3474ad36c74e34a7dfe)), closes [#613](https://github.com/peaceiris/actions-hugo/issues/613)
|
||||
* update url ([c1f39e2](https://github.com/peaceiris/actions-hugo/commit/c1f39e2b46476a13ad7e4a5eb06b8e2f582a2f13))
|
||||
|
||||
### ci
|
||||
|
||||
* add actions/dependency-review-action v1 ([4809af4](https://github.com/peaceiris/actions-hugo/commit/4809af4bd48eabfbb4c6be7588a9b3859dba454a))
|
||||
* add resolved ([101470c](https://github.com/peaceiris/actions-hugo/commit/101470c99f5450d86c10ea44c549fd267b317ffc))
|
||||
* bump actions/checkout from 2.3.4 to 2.3.5 (#546) ([3bb386e](https://github.com/peaceiris/actions-hugo/commit/3bb386ec5a21d7ae895f0880b0a2fb1ea189cd8b)), closes [#546](https://github.com/peaceiris/actions-hugo/issues/546)
|
||||
* bump actions/checkout from 2.3.5 to 2.4.0 (#548) ([86a3c30](https://github.com/peaceiris/actions-hugo/commit/86a3c300c730f9c35886afeca0af0c2ce031b0b4)), closes [#548](https://github.com/peaceiris/actions-hugo/issues/548)
|
||||
* bump actions/checkout from 2.4.0 to 3 (#565) ([a41bdb5](https://github.com/peaceiris/actions-hugo/commit/a41bdb53bd93ff61a324fffa43fab5b65bca4fdd)), closes [#565](https://github.com/peaceiris/actions-hugo/issues/565)
|
||||
* bump actions/dependency-review-action from 1 to 2 (#593) ([831547a](https://github.com/peaceiris/actions-hugo/commit/831547a4b23e8d07bbc73bdcc8423938d344bb4a)), closes [#593](https://github.com/peaceiris/actions-hugo/issues/593)
|
||||
* bump actions/setup-node from 2.1.5 to 2.2.0 (#529) ([497618b](https://github.com/peaceiris/actions-hugo/commit/497618ba62018779773217131791215872b92631)), closes [#529](https://github.com/peaceiris/actions-hugo/issues/529)
|
||||
* bump actions/setup-node from 2.2.0 to 2.3.0 (#531) ([781702e](https://github.com/peaceiris/actions-hugo/commit/781702ee9d9be2f39d1cc7971dfde041e1b17e1b)), closes [#531](https://github.com/peaceiris/actions-hugo/issues/531)
|
||||
* bump actions/setup-node from 2.3.0 to 2.3.2 (#537) ([239a50c](https://github.com/peaceiris/actions-hugo/commit/239a50c280a0b6595f3fd9f60f17d34e290a3ae4)), closes [#537](https://github.com/peaceiris/actions-hugo/issues/537)
|
||||
* bump actions/setup-node from 2.3.2 to 2.4.0 (#538) ([57272db](https://github.com/peaceiris/actions-hugo/commit/57272db01ca4c3253e4bb6163664a50a23a76cc5)), closes [#538](https://github.com/peaceiris/actions-hugo/issues/538)
|
||||
* bump actions/setup-node from 2.4.0 to 2.4.1 (#543) ([cebd001](https://github.com/peaceiris/actions-hugo/commit/cebd0015e0fbf4cdcd17422a1ba70f0c13b8b5c4)), closes [#543](https://github.com/peaceiris/actions-hugo/issues/543)
|
||||
* bump actions/setup-node from 2.4.1 to 2.5.0 (#551) ([008429a](https://github.com/peaceiris/actions-hugo/commit/008429aaabf87bac670904f069d682b7493ef9e1)), closes [#551](https://github.com/peaceiris/actions-hugo/issues/551)
|
||||
* bump actions/setup-node from 2.5.0 to 2.5.1 (#552) ([1575f40](https://github.com/peaceiris/actions-hugo/commit/1575f408aee0a92b8b324e1d7537fac7316d69d0)), closes [#552](https://github.com/peaceiris/actions-hugo/issues/552)
|
||||
* bump actions/setup-node from 2.5.1 to 3.0.0 (#557) ([550aee6](https://github.com/peaceiris/actions-hugo/commit/550aee6c368724015b790edca76711b5b6c8e781)), closes [#557](https://github.com/peaceiris/actions-hugo/issues/557)
|
||||
* bump actions/setup-node from 3.0.0 to 3.1.0 (#574) ([2f2b8d3](https://github.com/peaceiris/actions-hugo/commit/2f2b8d32b92379b30f0a4ad74d0cd6472c42e482)), closes [#574](https://github.com/peaceiris/actions-hugo/issues/574)
|
||||
* bump actions/setup-node from 3.1.0 to 3.1.1 (#577) ([25736cc](https://github.com/peaceiris/actions-hugo/commit/25736cc1c02fdd4b3eae34d261d2ad7fe45e135a)), closes [#577](https://github.com/peaceiris/actions-hugo/issues/577)
|
||||
* bump actions/setup-node from 3.1.1 to 3.4.1 (#598) ([11bede6](https://github.com/peaceiris/actions-hugo/commit/11bede66e7d1c36c4e39a5d1e32442056e41e7ef)), closes [#598](https://github.com/peaceiris/actions-hugo/issues/598)
|
||||
* bump actions/setup-node from 3.4.1 to 3.5.0 (#606) ([a2eba60](https://github.com/peaceiris/actions-hugo/commit/a2eba606985f706c754c8e4c283bc3d913897a31)), closes [#606](https://github.com/peaceiris/actions-hugo/issues/606)
|
||||
* bump actions/setup-node from 3.5.0 to 3.5.1 (#612) ([c0150f2](https://github.com/peaceiris/actions-hugo/commit/c0150f24bb3e706c93def97a4dae60b9b6fd23ff)), closes [#612](https://github.com/peaceiris/actions-hugo/issues/612)
|
||||
* bump actions/upload-artifact from 2 to 3 (#576) ([6ce18a7](https://github.com/peaceiris/actions-hugo/commit/6ce18a799f48752081f8aff7bdc21e0757b9f260)), closes [#576](https://github.com/peaceiris/actions-hugo/issues/576)
|
||||
* bump codecov/codecov-action from 1.5.0 to 1.5.2 (#526) ([ad8a667](https://github.com/peaceiris/actions-hugo/commit/ad8a66742861fb836a13187e2d66d126c2758296)), closes [#526](https://github.com/peaceiris/actions-hugo/issues/526)
|
||||
* bump codecov/codecov-action from 1.5.2 to 2.0.1 (#530) ([19b5ac8](https://github.com/peaceiris/actions-hugo/commit/19b5ac8979b2b5edfe306c9f3659b98effd6e285)), closes [#530](https://github.com/peaceiris/actions-hugo/issues/530)
|
||||
* bump codecov/codecov-action from 2.0.1 to 2.0.2 (#533) ([54f7007](https://github.com/peaceiris/actions-hugo/commit/54f7007102553a5e97014fbcb91aea3c0920db0b)), closes [#533](https://github.com/peaceiris/actions-hugo/issues/533)
|
||||
* bump codecov/codecov-action from 2.0.2 to 2.0.3 (#540) ([b911fb4](https://github.com/peaceiris/actions-hugo/commit/b911fb4dcf324e9f66c0553f61e037bead654e5d)), closes [#540](https://github.com/peaceiris/actions-hugo/issues/540)
|
||||
* bump codecov/codecov-action from 2.0.3 to 2.1.0 (#542) ([f93586e](https://github.com/peaceiris/actions-hugo/commit/f93586ef6c1a3a4f26eb0b6117e732507466d4de)), closes [#542](https://github.com/peaceiris/actions-hugo/issues/542)
|
||||
* bump codecov/codecov-action from 2.1.0 to 3 (#575) ([3c69ee1](https://github.com/peaceiris/actions-hugo/commit/3c69ee16122614bd86d8881c92e1e374669ca559)), closes [#575](https://github.com/peaceiris/actions-hugo/issues/575)
|
||||
* bump github/codeql-action from 1 to 2 (#581) ([808d10a](https://github.com/peaceiris/actions-hugo/commit/808d10a6aac88104619e8d47fca8a56eaeb71b12)), closes [#581](https://github.com/peaceiris/actions-hugo/issues/581)
|
||||
* bump peaceiris/actions-hugo from 2.4.13 to 2.5.0 (#521) ([6a16840](https://github.com/peaceiris/actions-hugo/commit/6a16840a8614e1d75a22df38f4a7555e7bb623ea)), closes [#521](https://github.com/peaceiris/actions-hugo/issues/521)
|
||||
* bump peaceiris/actions-label-commenter from 1.9.1 to 1.9.2 (#528) ([dead32d](https://github.com/peaceiris/actions-hugo/commit/dead32d58922938cb063b358881eb7df21e5b228)), closes [#528](https://github.com/peaceiris/actions-hugo/issues/528)
|
||||
* bump peaceiris/actions-label-commenter from 1.9.2 to 1.10.0 (#532) ([82ac7db](https://github.com/peaceiris/actions-hugo/commit/82ac7db7f2d5ece5824b40882acb6c9dbd31da56)), closes [#532](https://github.com/peaceiris/actions-hugo/issues/532)
|
||||
* Change event from published to released ([5d8b0b2](https://github.com/peaceiris/actions-hugo/commit/5d8b0b2005c61de25aa469e038efb717902a8500))
|
||||
* drop ubuntu-18.04, add ubuntu-22.04 and ubuntu-latest (#603) ([bd5a5ed](https://github.com/peaceiris/actions-hugo/commit/bd5a5edf1b6a534bee1c70bd49f0ba3ff435e597)), closes [#603](https://github.com/peaceiris/actions-hugo/issues/603)
|
||||
* Remove updating npm ([ba23c24](https://github.com/peaceiris/actions-hugo/commit/ba23c24d3ae3be77ed05b3c0ac9990b030648de0))
|
||||
|
||||
### deps
|
||||
|
||||
* bump @actions/core from 1.2.7 to 1.6.0 (#544) ([be79927](https://github.com/peaceiris/actions-hugo/commit/be79927858b2280c3c371f70e54a8f73fd17d931)), closes [#544](https://github.com/peaceiris/actions-hugo/issues/544)
|
||||
* bump @actions/exec from 1.0.4 to 1.1.1 (#571) ([7d27b3c](https://github.com/peaceiris/actions-hugo/commit/7d27b3ca0d7d3196371a1d3fb1575317d6099146)), closes [#571](https://github.com/peaceiris/actions-hugo/issues/571)
|
||||
* bump @actions/tool-cache from 1.6.1 to 1.7.2 (#570) ([616b5f1](https://github.com/peaceiris/actions-hugo/commit/616b5f11b689c6a3064f589815e8bfbc04c444e9)), closes [#570](https://github.com/peaceiris/actions-hugo/issues/570)
|
||||
* bump ansi-regex from 5.0.0 to 5.0.1 (#562) ([857689a](https://github.com/peaceiris/actions-hugo/commit/857689ab4c02dd173b4d9b2bc569b94f0bd56a11)), closes [#562](https://github.com/peaceiris/actions-hugo/issues/562)
|
||||
* bump glob-parent from 5.1.1 to 5.1.2 (#563) ([91a922c](https://github.com/peaceiris/actions-hugo/commit/91a922ca60edf9a5dd9466dae065fcbd8e02efc2)), closes [#563](https://github.com/peaceiris/actions-hugo/issues/563)
|
||||
* bump minimist from 1.2.5 to 1.2.6 (#572) ([b2630b1](https://github.com/peaceiris/actions-hugo/commit/b2630b1c8ff9200bde342ec33b98c1ede4c03473)), closes [#572](https://github.com/peaceiris/actions-hugo/issues/572)
|
||||
* bump path-parse from 1.0.6 to 1.0.7 (#559) ([dee3925](https://github.com/peaceiris/actions-hugo/commit/dee39257f51c6bfbeffdc8b475029fad02299a5a)), closes [#559](https://github.com/peaceiris/actions-hugo/issues/559)
|
||||
* bump shelljs from 0.8.4 to 0.8.5 (#561) ([26d3d6b](https://github.com/peaceiris/actions-hugo/commit/26d3d6b6560f1131c4f9ae9622a7558ac9a2c19d)), closes [#561](https://github.com/peaceiris/actions-hugo/issues/561)
|
||||
* bump tmpl from 1.0.4 to 1.0.5 (#558) ([8f469b1](https://github.com/peaceiris/actions-hugo/commit/8f469b17c39a96eeffd077531bf8db8b9f22e916)), closes [#558](https://github.com/peaceiris/actions-hugo/issues/558)
|
||||
* bump trim-off-newlines from 1.0.1 to 1.0.3 (#560) ([f90a733](https://github.com/peaceiris/actions-hugo/commit/f90a73305c9f1a235a04a6dd16b8d728f72c623c)), closes [#560](https://github.com/peaceiris/actions-hugo/issues/560)
|
||||
* bump ws from 7.4.0 to 7.5.7 (#573) ([b15a5c7](https://github.com/peaceiris/actions-hugo/commit/b15a5c70d3e8c52cb88b2cc6786611441c83e9d4)), closes [#573](https://github.com/peaceiris/actions-hugo/issues/573)
|
||||
* node 12.22.4 ([4083be1](https://github.com/peaceiris/actions-hugo/commit/4083be136338c4140b03cbe12fe046a46c38dbdd))
|
||||
|
||||
### docs
|
||||
|
||||
* Add concurrency ([8d746f0](https://github.com/peaceiris/actions-hugo/commit/8d746f09e2808a6e250393fde3d471d7cf53a047))
|
||||
* Improve concurrency usage ([20d6724](https://github.com/peaceiris/actions-hugo/commit/20d6724b2ce2fbb34442e0a950796050e21e054d))
|
||||
* Improve if syntax ([068938a](https://github.com/peaceiris/actions-hugo/commit/068938ab2245aee69d3120f8b120f009345713a8))
|
||||
* use setup-node cache-dependency-path (#602) ([46553ea](https://github.com/peaceiris/actions-hugo/commit/46553eae11dc4ca2d07de9f176dc4fa4c2c50c10)), closes [#602](https://github.com/peaceiris/actions-hugo/issues/602)
|
||||
* Use ubuntu-20.04 ([903b945](https://github.com/peaceiris/actions-hugo/commit/903b94526d6bc9980c3ed3de99ba63dad5209b10))
|
||||
|
||||
### feat
|
||||
|
||||
* bump node12 to node16 (#617) ([9a77c64](https://github.com/peaceiris/actions-hugo/commit/9a77c647c2a01d1de23ed40d01b9c80a00bffcd3)), closes [#617](https://github.com/peaceiris/actions-hugo/issues/617)
|
||||
|
||||
|
||||
|
||||
# [2.5.0](https://github.com/peaceiris/actions-hugo/compare/v2.4.13...v2.5.0) (2021-05-27)
|
||||
|
||||
|
||||
### build
|
||||
|
||||
* Set target to ES2019 (#497) ([a6b1a4c](https://github.com/peaceiris/actions-hugo/commit/a6b1a4cb03657fdabc476d354be1de69c1f2c784)), closes [#497](https://github.com/peaceiris/actions-hugo/issues/497)
|
||||
|
||||
### chore
|
||||
|
||||
* add link to Actions Documentation ([ecc4361](https://github.com/peaceiris/actions-hugo/commit/ecc43610c05bf8bb7339bc9f8f06ebafdaba1fa7))
|
||||
* Add postinstall for husky install ([917a097](https://github.com/peaceiris/actions-hugo/commit/917a09767d1cfbe8ac1827d2da61fbcab8ad4f1e))
|
||||
* fix husky ([c3d5873](https://github.com/peaceiris/actions-hugo/commit/c3d587365f380dd8aa22d5ab9bfb66bcdf1b7d2a))
|
||||
* npx husky install ([d2e1e74](https://github.com/peaceiris/actions-hugo/commit/d2e1e740d08d04e87877506f4446cb5759b3784c))
|
||||
* update husky config ([e77b890](https://github.com/peaceiris/actions-hugo/commit/e77b89094bb7e1c96f3803ad3e510b4075434ee3))
|
||||
* update link to github.community ([35b8c49](https://github.com/peaceiris/actions-hugo/commit/35b8c49468604b403f35fdb315b22a3e3b784eb1))
|
||||
|
||||
### ci
|
||||
|
||||
* allow dependency-type production ([a448002](https://github.com/peaceiris/actions-hugo/commit/a448002cc3932bedf88a9304591e02ee58bd1ced))
|
||||
* bump actions/checkout from 2 to 2.3.4 (#517) ([f245604](https://github.com/peaceiris/actions-hugo/commit/f2456046988c712555be95348c00a5b9c1dc6482)), closes [#517](https://github.com/peaceiris/actions-hugo/issues/517)
|
||||
* bump actions/setup-node from v2.1.2 to v2.1.3 (#479) ([9dea4e7](https://github.com/peaceiris/actions-hugo/commit/9dea4e7496af6b42e3306eb3b6c3321c15184669)), closes [#479](https://github.com/peaceiris/actions-hugo/issues/479)
|
||||
* bump actions/setup-node from v2.1.3 to v2.1.4 (#482) ([ee35d79](https://github.com/peaceiris/actions-hugo/commit/ee35d79f1a6a83d2295f63c1da996b30e027ccf3)), closes [#482](https://github.com/peaceiris/actions-hugo/issues/482)
|
||||
* bump actions/setup-node from v2.1.4 to v2.1.5 (#494) ([31afbc6](https://github.com/peaceiris/actions-hugo/commit/31afbc6b76e82fb797899aeb569b744008ca7d85)), closes [#494](https://github.com/peaceiris/actions-hugo/issues/494)
|
||||
* bump codecov/codecov-action from v1.0.13 to v1.0.14 (#460) ([4d4d52c](https://github.com/peaceiris/actions-hugo/commit/4d4d52c170a99805c8c86297fe9e8c630ff68b1d)), closes [#460](https://github.com/peaceiris/actions-hugo/issues/460)
|
||||
* bump codecov/codecov-action from v1.0.14 to v1.0.15 (#469) ([5560a30](https://github.com/peaceiris/actions-hugo/commit/5560a30c304a6acea63233ec9c73700f7150ae7e)), closes [#469](https://github.com/peaceiris/actions-hugo/issues/469)
|
||||
* bump codecov/codecov-action from v1.0.15 to v1.1.0 (#483) ([781fb44](https://github.com/peaceiris/actions-hugo/commit/781fb448ba019a547fa83cfe413845a856364f27)), closes [#483](https://github.com/peaceiris/actions-hugo/issues/483)
|
||||
* bump codecov/codecov-action from v1.1.0 to v1.1.1 (#485) ([8087db7](https://github.com/peaceiris/actions-hugo/commit/8087db721476005461b4283f77190b68d2c84f04)), closes [#485](https://github.com/peaceiris/actions-hugo/issues/485)
|
||||
* bump codecov/codecov-action from v1.1.1 to v1.2.0 (#487) ([8ed2f1f](https://github.com/peaceiris/actions-hugo/commit/8ed2f1fddd1c2ef4e402bb63eccfe29b809ba3d3)), closes [#487](https://github.com/peaceiris/actions-hugo/issues/487)
|
||||
* bump codecov/codecov-action from v1.2.0 to v1.2.1 (#488) ([f6171a1](https://github.com/peaceiris/actions-hugo/commit/f6171a1916a25e1f3e577308b3ca84fd3d36adb8)), closes [#488](https://github.com/peaceiris/actions-hugo/issues/488)
|
||||
* bump codecov/codecov-action from v1.2.1 to v1.2.2 (#501) ([b7da7a5](https://github.com/peaceiris/actions-hugo/commit/b7da7a5c7fc09e7f20da3571aacc93b19e31a884)), closes [#501](https://github.com/peaceiris/actions-hugo/issues/501)
|
||||
* bump codecov/codecov-action from v1.2.2 to v1.3.1 (#502) ([354ddc2](https://github.com/peaceiris/actions-hugo/commit/354ddc2c0e944651389d0825bddd38c58ed70b96)), closes [#502](https://github.com/peaceiris/actions-hugo/issues/502)
|
||||
* bump codecov/codecov-action from v1.3.1 to v1.3.2 (#506) ([937472e](https://github.com/peaceiris/actions-hugo/commit/937472ef054c627b8b2e5107045d1150659e519a)), closes [#506](https://github.com/peaceiris/actions-hugo/issues/506)
|
||||
* bump codecov/codecov-action from v1.3.2 to v1.4.0 (#511) ([065ff42](https://github.com/peaceiris/actions-hugo/commit/065ff428c585180c45d415b1135cd752949eb087)), closes [#511](https://github.com/peaceiris/actions-hugo/issues/511)
|
||||
* bump codecov/codecov-action from v1.4.0 to v1.4.1 (#512) ([929d18c](https://github.com/peaceiris/actions-hugo/commit/929d18cc521c942da835291cb76bab5babb6ba68)), closes [#512](https://github.com/peaceiris/actions-hugo/issues/512)
|
||||
* bump codecov/codecov-action from v1.4.1 to v1.5.0 (#514) ([634c0f2](https://github.com/peaceiris/actions-hugo/commit/634c0f28919c4ed0c99c7b830a780bab33530fd9)), closes [#514](https://github.com/peaceiris/actions-hugo/issues/514)
|
||||
* bump peaceiris/actions-hugo from 2 to 2.4.13 (#516) ([b843eae](https://github.com/peaceiris/actions-hugo/commit/b843eaee1d20f88acb7efec2004c1c1b250bbc37)), closes [#516](https://github.com/peaceiris/actions-hugo/issues/516)
|
||||
* bump peaceiris/actions-label-commenter from v1.6.1 to v1.7.0 (#475) ([7e706f1](https://github.com/peaceiris/actions-hugo/commit/7e706f138412fc25628776aba7ed982c2ecce77b)), closes [#475](https://github.com/peaceiris/actions-hugo/issues/475)
|
||||
* bump peaceiris/actions-label-commenter from v1.7.0 to v1.8.0 (#476) ([fc61cde](https://github.com/peaceiris/actions-hugo/commit/fc61cdeb0558a7e59e2faa6df595b789f91251dd)), closes [#476](https://github.com/peaceiris/actions-hugo/issues/476)
|
||||
* bump peaceiris/actions-label-commenter from v1.8.0 to v1.8.1 (#477) ([d2c234c](https://github.com/peaceiris/actions-hugo/commit/d2c234c93b647f937a85b7ca69f1af403e33eb52)), closes [#477](https://github.com/peaceiris/actions-hugo/issues/477)
|
||||
* bump peaceiris/actions-label-commenter from v1.8.1 to v1.8.2 (#478) ([9dc9001](https://github.com/peaceiris/actions-hugo/commit/9dc9001ec24de7b806c7585c6c5d1128fa536135)), closes [#478](https://github.com/peaceiris/actions-hugo/issues/478)
|
||||
* bump peaceiris/actions-label-commenter from v1.8.2 to v1.9.0 (#484) ([e4d3e17](https://github.com/peaceiris/actions-hugo/commit/e4d3e173c5addc432fd0bd982184a69e24961c72)), closes [#484](https://github.com/peaceiris/actions-hugo/issues/484)
|
||||
* bump peaceiris/actions-label-commenter from v1.9.0 to v1.9.1 (#493) ([638ebc3](https://github.com/peaceiris/actions-hugo/commit/638ebc39d8a766ab0d12a9124054051d1b31d7a1)), closes [#493](https://github.com/peaceiris/actions-hugo/issues/493)
|
||||
* Drop ubuntu-16.04 (#513) ([6b42ea1](https://github.com/peaceiris/actions-hugo/commit/6b42ea1676602f31267ebd3466784cd813863ef7)), closes [#513](https://github.com/peaceiris/actions-hugo/issues/513)
|
||||
* Fix husky post-merge ([4f6ebdd](https://github.com/peaceiris/actions-hugo/commit/4f6ebdd7670cb3d0b3d9c574d9c11788b57006b3))
|
||||
* Fix husky post-merge (#491) ([029d5ce](https://github.com/peaceiris/actions-hugo/commit/029d5ce0d047998a61ed87b48b7d11396109376e)), closes [#491](https://github.com/peaceiris/actions-hugo/issues/491)
|
||||
* Migrate husky from v4 to v5 ([9564982](https://github.com/peaceiris/actions-hugo/commit/9564982d194bfb3b965d21d80c8903dbd328cdc6))
|
||||
* remove CODECOV_TOKEN (#490) ([b2b9041](https://github.com/peaceiris/actions-hugo/commit/b2b9041dc7d472875c86939648440bcc2afad6c4)), closes [#490](https://github.com/peaceiris/actions-hugo/issues/490)
|
||||
* remove options no longer needed (#474) ([ff64ad3](https://github.com/peaceiris/actions-hugo/commit/ff64ad3cd40de5c81409ba2f937b47ab573905c2)), closes [#474](https://github.com/peaceiris/actions-hugo/issues/474)
|
||||
* Remove skipci job ([da35efe](https://github.com/peaceiris/actions-hugo/commit/da35efefa826a63d06a9d2642ac18d7ce312eed0))
|
||||
|
||||
### deps
|
||||
|
||||
* bump @actions/core from 1.2.6 to 1.2.7 (#507) ([b263ea9](https://github.com/peaceiris/actions-hugo/commit/b263ea9e10ee728a536db434c3e1babbb6bb3018)), closes [#507](https://github.com/peaceiris/actions-hugo/issues/507)
|
||||
* bump @actions/io from 1.0.2 to 1.1.0 (#505) ([d2d1138](https://github.com/peaceiris/actions-hugo/commit/d2d11383067fa9ee8a84783edc89a133fd841695)), closes [#505](https://github.com/peaceiris/actions-hugo/issues/505)
|
||||
* bump @actions/tool-cache from 1.6.0 to 1.6.1 (#468) ([bad2722](https://github.com/peaceiris/actions-hugo/commit/bad27227bf688526565c17d3991a6bb07da351f9)), closes [#468](https://github.com/peaceiris/actions-hugo/issues/468)
|
||||
* bump @types/node from 12.12.63 to 12.12.64 (#454) ([8bb474e](https://github.com/peaceiris/actions-hugo/commit/8bb474e6f039d3c0554a1c447715f9afd0990671)), closes [#454](https://github.com/peaceiris/actions-hugo/issues/454)
|
||||
* bump @types/node from 12.12.64 to 12.12.66 (#455) ([0c241c1](https://github.com/peaceiris/actions-hugo/commit/0c241c131a7ac06e0ca15d1de99a12dd627025a1)), closes [#455](https://github.com/peaceiris/actions-hugo/issues/455)
|
||||
* bump @types/node from 12.12.66 to 12.12.67 (#457) ([57c1213](https://github.com/peaceiris/actions-hugo/commit/57c12138971d301923f23b4f3009e6aa5d5439d0)), closes [#457](https://github.com/peaceiris/actions-hugo/issues/457)
|
||||
* bump ini from 1.3.5 to 1.3.8 (#480) ([beaa1ee](https://github.com/peaceiris/actions-hugo/commit/beaa1ee2a1492de7430bac2238e29e8ff4950ee3)), closes [#480](https://github.com/peaceiris/actions-hugo/issues/480)
|
||||
* bump jest-circus from 26.5.1 to 26.5.2 (#453) ([2b3e82c](https://github.com/peaceiris/actions-hugo/commit/2b3e82c924f5a8189be9b0db3c2fa4c88fc6093f)), closes [#453](https://github.com/peaceiris/actions-hugo/issues/453)
|
||||
* bump jest-circus from 26.5.2 to 26.5.3 (#456) ([7e8c2a0](https://github.com/peaceiris/actions-hugo/commit/7e8c2a08b40a6e0fcec415033ab6cbe45bb6eb76)), closes [#456](https://github.com/peaceiris/actions-hugo/issues/456)
|
||||
* bump node from 12.18.4 to 12.19.0 (#458) ([d183b58](https://github.com/peaceiris/actions-hugo/commit/d183b58fee71c13b2d63864067b2129ad91d4b9a)), closes [#458](https://github.com/peaceiris/actions-hugo/issues/458)
|
||||
* bump node from 12.19.0 to 12.19.1 (#471) ([21d2e6e](https://github.com/peaceiris/actions-hugo/commit/21d2e6ea580812d56a69582f9d57dca65ee9b96c)), closes [#471](https://github.com/peaceiris/actions-hugo/issues/471) [#472](https://github.com/peaceiris/actions-hugo/issues/472)
|
||||
* bump node from 12.19.1 to 12.20.0 ([8808a28](https://github.com/peaceiris/actions-hugo/commit/8808a28020ccea48f350ea3099e99ea610fd2b15))
|
||||
* bump node from 12.20.0 to 12.20.1 (#489) ([10834f4](https://github.com/peaceiris/actions-hugo/commit/10834f4404ee13ef757d5fa80317d3cdc85b9c5f)), closes [#489](https://github.com/peaceiris/actions-hugo/issues/489)
|
||||
* bump node from 12.20.1 to 12.21.0 (#500) ([da36599](https://github.com/peaceiris/actions-hugo/commit/da36599fbf30f21edf7f0cb53689cbdcc25a2ef8)), closes [#500](https://github.com/peaceiris/actions-hugo/issues/500)
|
||||
* Bump node from 12.21.0 to 12.22.0 (#503) ([5d548aa](https://github.com/peaceiris/actions-hugo/commit/5d548aa7b61b9b09310447cdd8709fb466653fbb)), closes [#503](https://github.com/peaceiris/actions-hugo/issues/503)
|
||||
* Bump node from 12.22.0 to 12.22.1 (#510) ([b674697](https://github.com/peaceiris/actions-hugo/commit/b67469730cda7ba4581ae824283ce8bb5e8f990b)), closes [#510](https://github.com/peaceiris/actions-hugo/issues/510)
|
||||
* bump node-notifier from 8.0.0 to 8.0.1 (#486) ([206a218](https://github.com/peaceiris/actions-hugo/commit/206a21899a688eed53406e4f6631c751b51e513f)), closes [#486](https://github.com/peaceiris/actions-hugo/issues/486)
|
||||
* Bump npm to v7 ([612b00f](https://github.com/peaceiris/actions-hugo/commit/612b00fe8fa8da50a91bf0fa58b67f5925ae2d0f))
|
||||
* npm audit fix ([f3792d9](https://github.com/peaceiris/actions-hugo/commit/f3792d95d87de9180705d1d1df33775d430215f1))
|
||||
* update (#459) ([a533681](https://github.com/peaceiris/actions-hugo/commit/a5336818dfd0400855e4e9856510a54c11dd33b0)), closes [#459](https://github.com/peaceiris/actions-hugo/issues/459)
|
||||
* update dev deps (#462) ([0df2d42](https://github.com/peaceiris/actions-hugo/commit/0df2d4252f179fa015364acdffa8b85453ddac8d)), closes [#462](https://github.com/peaceiris/actions-hugo/issues/462)
|
||||
* update devDependencies (#466) ([d2b6644](https://github.com/peaceiris/actions-hugo/commit/d2b6644a8068056eb31d292277fd01fe9d50438c)), closes [#466](https://github.com/peaceiris/actions-hugo/issues/466)
|
||||
* update devDependencies (#492) ([32f5b71](https://github.com/peaceiris/actions-hugo/commit/32f5b71c41c0ee8e154160a00a90dd345ed71168)), closes [#492](https://github.com/peaceiris/actions-hugo/issues/492)
|
||||
* update devDependencies (#498) ([9f50a3c](https://github.com/peaceiris/actions-hugo/commit/9f50a3c912f8d1b5be9d4ee06fb2e1e893ab0d20)), closes [#498](https://github.com/peaceiris/actions-hugo/issues/498)
|
||||
|
||||
### docs
|
||||
|
||||
* Add Non-ascii Filename section (#499) ([0590f91](https://github.com/peaceiris/actions-hugo/commit/0590f912fcce9b0c257424efc5e79075a0a88a0c)), closes [#499](https://github.com/peaceiris/actions-hugo/issues/499)
|
||||
* Add pull_request event ([65bdbf1](https://github.com/peaceiris/actions-hugo/commit/65bdbf15ab5818f14c718f27d5c769dc1a4fb32b))
|
||||
* Bump actions/setup-node from v1 to v2 ([e53f8d6](https://github.com/peaceiris/actions-hugo/commit/e53f8d69e59fe9a25e6f3c24717cfd0d51b57b0b))
|
||||
* Bump hugo from 0.79.1 to 0.81.0 ([fbae6cf](https://github.com/peaceiris/actions-hugo/commit/fbae6cf1c897ef7ec3e69991eee81e57e57e4898))
|
||||
* bump versions ([b0fb91b](https://github.com/peaceiris/actions-hugo/commit/b0fb91bc02638e5ca8f0139c91cbff931167f7a7))
|
||||
* update title position ([a7dd109](https://github.com/peaceiris/actions-hugo/commit/a7dd10985c1e5f8029577517cff546202a3b6e5f))
|
||||
|
||||
### feat
|
||||
|
||||
* Add support for different processor architectures (#518) ([6d30a88](https://github.com/peaceiris/actions-hugo/commit/6d30a88741382c063b723b98b1bad3a71b248f1b)), closes [#518](https://github.com/peaceiris/actions-hugo/issues/518)
|
||||
|
||||
|
||||
|
||||
## [2.4.13](https://github.com/peaceiris/actions-hugo/compare/v2.4.12...v2.4.13) (2020-10-06)
|
||||
|
||||
|
||||
|
2
LICENSE
2
LICENSE
@ -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
|
||||
|
169
README.md
169
README.md
@ -1,8 +1,3 @@
|
||||
## GitHub Actions for Hugo
|
||||
|
||||
<img width="400" alt="GitHub Actions for Hugo" src="./images/ogp.svg">
|
||||
|
||||
[](https://www.repostatus.org/#active)
|
||||
[](https://github.com/peaceiris/actions-hugo/blob/main/LICENSE)
|
||||
[](https://github.com/peaceiris/actions-hugo/releases/latest)
|
||||
[](https://github.com/peaceiris/actions-hugo/releases)
|
||||
@ -14,17 +9,23 @@
|
||||
[](https://codecov.io/gh/peaceiris/actions-hugo)
|
||||
[](https://codeclimate.com/github/peaceiris/actions-hugo/maintainability)
|
||||
|
||||
This **Hugo Setup Action** can install [Hugo] to a virtual machine of **GitHub Actions**.
|
||||
**Hugo extended** version, **Hugo Modules**, Linux (Ubuntu), macOS, and Windows are supported.
|
||||
<img width="400" alt="GitHub Actions for Hugo" src="./images/ogp.svg">
|
||||
|
||||
[Hugo]: https://github.com/gohugoio/hugo
|
||||
|
||||
|
||||
## GitHub Actions for Hugo
|
||||
|
||||
- [gohugoio/hugo: The world’s fastest framework for building websites.](https://github.com/gohugoio/hugo)
|
||||
|
||||
This **Hugo Setup Action** can install **Hugo** to a virtual machine of **GitHub Actions**.
|
||||
**Hugo extended** version, **Hugo Modules**, Linux (Ubuntu), macOS, and Windows are supported.
|
||||
|
||||
From `v2`, this Hugo Setup Action has migrated to a JavaScript (TypeScript) action.
|
||||
We no longer build or pull a Hugo docker image.
|
||||
Thanks to this change, we can complete this action in less than a few seconds.
|
||||
(A docker base action was taking about 1 min or more execution time to build and pull a docker image.)
|
||||
|
||||
| OS (runs-on) | ubuntu-latest, ubuntu-20.04, ubuntu-22.04 | macos-latest | windows-2019 |
|
||||
| OS (runs-on) | ubuntu-18.04 | macos-latest | windows-2019 |
|
||||
|---|:---:|:---:|:---:|
|
||||
| Support | ✅️ | ✅️ | ✅️ |
|
||||
|
||||
@ -39,6 +40,7 @@ Thanks to this change, we can complete this action in less than a few seconds.
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
||||
|
||||
- [Getting started](#getting-started)
|
||||
- [⭐️ Create your workflow](#%EF%B8%8F-create-your-workflow)
|
||||
- [Options](#options)
|
||||
@ -49,7 +51,6 @@ Thanks to this change, we can complete this action in less than a few seconds.
|
||||
- [⭐️ 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)
|
||||
- [⭐️ Non-ascii Filename](#%EF%B8%8F-non-ascii-filename)
|
||||
- [CHANGELOG](#changelog)
|
||||
- [License](#license)
|
||||
- [About Maintainer](#about-maintainer)
|
||||
@ -71,29 +72,26 @@ For the first deployment, we have to do this operation: [First Deployment with `
|
||||
[](https://github.com/peaceiris/actions-gh-pages)
|
||||
|
||||
```yaml
|
||||
name: GitHub Pages
|
||||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # Set a branch to deploy
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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@v3
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '0.119.0'
|
||||
hugo-version: '0.75.1'
|
||||
# extended: true
|
||||
|
||||
- name: Build
|
||||
@ -101,7 +99,6 @@ jobs:
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: github.ref == 'refs/heads/main'
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./public
|
||||
@ -121,9 +118,9 @@ Set `extended: true` to use a Hugo extended version.
|
||||
|
||||
```yaml
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '0.119.0'
|
||||
hugo-version: '0.75.1'
|
||||
extended: true
|
||||
```
|
||||
|
||||
@ -133,7 +130,7 @@ Set `hugo-version: 'latest'` to use the latest version of Hugo.
|
||||
|
||||
```yaml
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
```
|
||||
@ -151,27 +148,12 @@ This action fetches the latest version of Hugo by [hugo | Homebrew Formulae](htt
|
||||
### ⭐️ Caching Hugo Modules
|
||||
|
||||
Insert a cache step before site-building as follows.
|
||||
|
||||
First, to maximize compatibility with all Hugo versions, let's define the variable `HUGO_CACHEDIR`:
|
||||
Note that the cache dir location of Hugo on a Linux-based operating system is `/tmp/hugo_cache`. On macOS, `${TMPDIR}/hugo_cache` has the location.
|
||||
|
||||
```yaml
|
||||
# * ...
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
HUGO_CACHEDIR: /tmp/hugo_cache # <- Define the env variable here, so that Hugo's cache dir is now predictible in your workflow and doesn't depend on the Hugo's version you're using.
|
||||
|
||||
# * ...
|
||||
```
|
||||
|
||||
Now, let's add the cache action call just above the _Build_ step:
|
||||
|
||||
```yaml
|
||||
- uses: actions/cache@v4
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ env.HUGO_CACHEDIR }} # <- Use the same env variable just right here
|
||||
path: /tmp/hugo_cache
|
||||
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-hugomod-
|
||||
@ -180,10 +162,6 @@ Now, let's add the cache action call just above the _Build_ step:
|
||||
run: hugo --minify
|
||||
```
|
||||
|
||||
<div align="right">
|
||||
<a href="#table-of-contents">Back to TOC ☝️</a>
|
||||
</div>
|
||||
|
||||
### ⭐️ Read Hugo version from file
|
||||
|
||||
How to sync a Hugo version between a Docker Compose and a GitHub Actions workflow via `.env` file.
|
||||
@ -191,7 +169,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.119.0
|
||||
HUGO_VERSION=0.75.1
|
||||
```
|
||||
|
||||
Next, add a step to read a Hugo version from the `.env` file.
|
||||
@ -201,10 +179,10 @@ Next, add a step to read a Hugo version from the `.env` file.
|
||||
id: hugo-version
|
||||
run: |
|
||||
. ./.env
|
||||
echo "HUGO_VERSION=${HUGO_VERSION}" >> "${GITHUB_OUTPUT}"
|
||||
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '${{ steps.hugo-version.outputs.HUGO_VERSION }}'
|
||||
extended: true
|
||||
@ -235,15 +213,11 @@ 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)
|
||||
|
||||
<div align="right">
|
||||
<a href="#table-of-contents">Back to TOC ☝️</a>
|
||||
</div>
|
||||
|
||||
### ⭐️ 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 with [google/docsy-example].
|
||||
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
|
||||
@ -251,88 +225,81 @@ The following workflow is tested with [google/docsy-example].
|
||||
A workflow for the Hugo Babel pipeline is also the same as follows.
|
||||
|
||||
```yaml
|
||||
name: GitHub Pages
|
||||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master # Set a branch to deploy
|
||||
pull_request:
|
||||
- main # Set a branch to deploy
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@4
|
||||
- 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@v3
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '0.119.0'
|
||||
hugo-version: '0.75.1'
|
||||
extended: true
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
# The action defaults to search for the dependency file (package-lock.json,
|
||||
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
|
||||
# hash as a part of the cache key.
|
||||
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
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
|
||||
if: github.ref == 'refs/heads/master'
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
|
||||
<div align="right">
|
||||
<a href="#table-of-contents">Back to TOC ☝️</a>
|
||||
</div>
|
||||
|
||||
### ⭐️ Workflow for asciidoctor
|
||||
|
||||
Here is an example workflow for a Hugo project using `asciidoctor`.
|
||||
|
||||
```yaml
|
||||
name: GitHub Pages
|
||||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # Set a branch to deploy
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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@v3
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '0.119.0'
|
||||
hugo-version: '0.75.1'
|
||||
extended: true
|
||||
|
||||
- name: Setup Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 3.2
|
||||
ruby-version: 2.7
|
||||
|
||||
- run: gem install asciidoctor
|
||||
|
||||
@ -343,7 +310,6 @@ jobs:
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: github.ref == 'refs/heads/main'
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
@ -352,41 +318,6 @@ jobs:
|
||||
<a href="#table-of-contents">Back to TOC ☝️</a>
|
||||
</div>
|
||||
|
||||
### ⭐️ Non-ascii Filename
|
||||
|
||||
cf. [Gitinfo fails on unicode filename · Issue #3071 · gohugoio/hugo](https://github.com/gohugoio/hugo/issues/3071)
|
||||
|
||||
```yaml
|
||||
name: GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Disable quotePath
|
||||
run: git config core.quotePath false
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: '0.119.0'
|
||||
```
|
||||
|
||||
<div align="right">
|
||||
<a href="#table-of-contents">Back to TOC ☝️</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
## CHANGELOG
|
||||
|
@ -1 +1 @@
|
||||
{"name":"hugo","full_name":"hugo","tap":"homebrew/core","oldname":null,"aliases":[],"versioned_formulae":[],"desc":"Configurable static site generator","license":"Apache-2.0","homepage":"https://gohugo.io/","versions":{"stable":"0.83.1","head":"HEAD","bottle":true},"urls":{"stable":{"url":"https://github.com/gohugoio/hugo/archive/v0.83.1.tar.gz","tag":null,"revision":null}},"revision":0,"version_scheme":0,"bottle":{"stable":{"rebuild":0,"root_url":"https://ghcr.io/v2/homebrew/core","files":{"arm64_big_sur":{"cellar":":any_skip_relocation","url":"https://ghcr.io/v2/homebrew/core/hugo/blobs/sha256:f5997a1858e300787cd6e2e01ff8f87f0d3233f42af4becc040448ce06524d53","sha256":"f5997a1858e300787cd6e2e01ff8f87f0d3233f42af4becc040448ce06524d53"},"big_sur":{"cellar":":any_skip_relocation","url":"https://ghcr.io/v2/homebrew/core/hugo/blobs/sha256:32ad322954e9c2962849495c88c88e461d21a0a7d3bfa3aa4892ee34f569bf81","sha256":"32ad322954e9c2962849495c88c88e461d21a0a7d3bfa3aa4892ee34f569bf81"},"catalina":{"cellar":":any_skip_relocation","url":"https://ghcr.io/v2/homebrew/core/hugo/blobs/sha256:99078c665152420113fac08aaea7bdf2f8fe230696b724448bb9f2244cfdec55","sha256":"99078c665152420113fac08aaea7bdf2f8fe230696b724448bb9f2244cfdec55"},"mojave":{"cellar":":any_skip_relocation","url":"https://ghcr.io/v2/homebrew/core/hugo/blobs/sha256:a45ae895351a549639b40bdbb2a630e8a11ffb68d78a0aa7577faedce4c011d4","sha256":"a45ae895351a549639b40bdbb2a630e8a11ffb68d78a0aa7577faedce4c011d4"}}}},"keg_only":false,"bottle_disabled":false,"options":[],"build_dependencies":["go"],"dependencies":[],"recommended_dependencies":[],"optional_dependencies":[],"uses_from_macos":[],"requirements":[],"conflicts_with":[],"caveats":null,"installed":[],"linked_keg":null,"pinned":false,"outdated":false,"deprecated":false,"deprecation_date":null,"deprecation_reason":null,"disabled":false,"disable_date":null,"disable_reason":null,"analytics":{"install":{"30d":{"hugo":24137,"hugo --HEAD":16},"90d":{"hugo":61006,"hugo --HEAD":51},"365d":{"hugo":246915,"hugo --HEAD":273}},"install_on_request":{"30d":{"hugo":24100,"hugo --HEAD":16},"90d":{"hugo":60903,"hugo --HEAD":51},"365d":{"hugo":244317,"hugo --HEAD":266}},"build_error":{"30d":{"hugo":0}}},"generated_date":"2021-05-21"}
|
||||
{"name":"hugo","full_name":"hugo","oldname":null,"aliases":[],"versioned_formulae":[],"desc":"Configurable static site generator","homepage":"https://gohugo.io/","versions":{"stable":"0.62.2","devel":null,"head":"HEAD","bottle":true},"revision":0,"version_scheme":0,"bottle":{"stable":{"rebuild":0,"cellar":":any_skip_relocation","prefix":"/usr/local","root_url":"https://homebrew.bintray.com/bottles","files":{"catalina":{"url":"https://homebrew.bintray.com/bottles/hugo-0.62.2.catalina.bottle.tar.gz","sha256":"354545c2c125e01a8860f83577fb4218d585fa8d38cd7f51e4228a149347fbcf"},"mojave":{"url":"https://homebrew.bintray.com/bottles/hugo-0.62.2.mojave.bottle.tar.gz","sha256":"9645b64fe6290c4c3b7591ef21139247f0fad6e49da1edd01665b3130a8f1d1a"},"high_sierra":{"url":"https://homebrew.bintray.com/bottles/hugo-0.62.2.high_sierra.bottle.tar.gz","sha256":"0ede4cbcc7536dd6b05107376637840356062273d734b4106be98b3d1732d50c"}}}},"keg_only":false,"bottle_disabled":false,"options":[],"build_dependencies":["go"],"dependencies":[],"recommended_dependencies":[],"optional_dependencies":[],"uses_from_macos":[],"requirements":[],"conflicts_with":[],"caveats":null,"installed":[],"linked_keg":null,"pinned":false,"outdated":false,"analytics":{"install":{"30d":{"hugo":24278,"hugo --HEAD":30},"90d":{"hugo":68639,"hugo --HEAD":80},"365d":{"hugo":223748,"hugo --HEAD":321}},"install_on_request":{"30d":{"hugo":23621,"hugo --HEAD":27},"90d":{"hugo":66676,"hugo --HEAD":74},"365d":{"hugo":215985,"hugo --HEAD":305}},"build_error":{"30d":{"hugo":0}}}}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,15 +0,0 @@
|
||||
import getArch from '../src/get-arch';
|
||||
|
||||
describe('getArch', () => {
|
||||
test('processor architecture', () => {
|
||||
expect(getArch('x64')).toBe('64bit');
|
||||
expect(getArch('arm')).toBe('ARM');
|
||||
expect(getArch('arm64')).toBe('ARM64');
|
||||
});
|
||||
|
||||
test('exception', () => {
|
||||
expect(() => {
|
||||
getArch('mips');
|
||||
}).toThrowError('mips is not supported');
|
||||
});
|
||||
});
|
@ -1,13 +1,13 @@
|
||||
import getOS from '../src/get-os';
|
||||
|
||||
describe('getOS', () => {
|
||||
test('os type', () => {
|
||||
test('test', () => {
|
||||
expect(getOS('linux')).toBe('Linux');
|
||||
expect(getOS('darwin')).toBe('macOS');
|
||||
expect(getOS('win32')).toBe('Windows');
|
||||
});
|
||||
|
||||
test('exception', () => {
|
||||
test('test exception', () => {
|
||||
expect(() => {
|
||||
getOS('centos');
|
||||
}).toThrowError('centos is not supported');
|
||||
|
@ -1,20 +1,18 @@
|
||||
import getURL from '../src/get-url';
|
||||
|
||||
describe('getURL()', () => {
|
||||
test('get a URL to an asset for each platform', () => {
|
||||
test('test', () => {
|
||||
const baseURL = 'https://github.com/gohugoio/hugo/releases/download/v0.58.2';
|
||||
const urlLinux = `${baseURL}/hugo_0.58.2_Linux-64bit.tar.gz`;
|
||||
const urlLinuxExtended = `${baseURL}/hugo_extended_0.58.2_Linux-64bit.tar.gz`;
|
||||
const urlMacOS = `${baseURL}/hugo_0.58.2_macOS-64bit.tar.gz`;
|
||||
const urlMacOSExtended = `${baseURL}/hugo_extended_0.58.2_macOS-64bit.tar.gz`;
|
||||
const urlWindows = `${baseURL}/hugo_0.58.2_Windows-64bit.zip`;
|
||||
expect(getURL('Linux', '64bit', 'false', '0.58.2')).toBe(urlLinux);
|
||||
expect(getURL('Linux', '64bit', 'true', '0.58.2')).not.toBe(urlLinux);
|
||||
expect(getURL('MyOS', '64bit', 'false', '0.58.2')).not.toBe(urlLinux);
|
||||
expect(getURL('Linux', '64bit', 'false', '0.58.1')).not.toBe(urlLinux);
|
||||
expect(getURL('Linux', '64bit', 'true', '0.58.2')).toBe(urlLinuxExtended);
|
||||
expect(getURL('macOS', '64bit', 'false', '0.58.2')).toBe(urlMacOS);
|
||||
expect(getURL('macOS', '64bit', 'true', '0.58.2')).toBe(urlMacOSExtended);
|
||||
expect(getURL('Windows', '64bit', 'false', '0.58.2')).toBe(urlWindows);
|
||||
expect(getURL('Linux', 'false', '0.58.2')).toBe(urlLinux);
|
||||
expect(getURL('Linux', 'true', '0.58.2')).not.toBe(urlLinux);
|
||||
expect(getURL('MyOS', 'false', '0.58.2')).not.toBe(urlLinux);
|
||||
expect(getURL('Linux', 'false', '0.58.1')).not.toBe(urlLinux);
|
||||
expect(getURL('Linux', 'true', '0.58.2')).toBe(urlLinuxExtended);
|
||||
expect(getURL('macOS', 'false', '0.58.2')).toBe(urlMacOS);
|
||||
expect(getURL('Windows', 'false', '0.58.2')).toBe(urlWindows);
|
||||
});
|
||||
});
|
||||
|
@ -27,7 +27,7 @@ describe('Integration testing run()', () => {
|
||||
process.env['INPUT_HUGO-VERSION'] = testVersion;
|
||||
const result: main.ActionResult = await main.run();
|
||||
expect(result.exitcode).toBe(0);
|
||||
expect(result.output).toMatch(`hugo v${testVersion}`);
|
||||
expect(result.output).toMatch(`Hugo Static Site Generator v${testVersion}`);
|
||||
});
|
||||
|
||||
test('succeed in installing a custom extended version', async () => {
|
||||
@ -36,7 +36,7 @@ describe('Integration testing run()', () => {
|
||||
process.env['INPUT_EXTENDED'] = 'true';
|
||||
const result: main.ActionResult = await main.run();
|
||||
expect(result.exitcode).toBe(0);
|
||||
expect(result.output).toMatch(`hugo v${testVersion}`);
|
||||
expect(result.output).toMatch(`Hugo Static Site Generator v${testVersion}`);
|
||||
expect(result.output).toMatch(`extended`);
|
||||
});
|
||||
|
||||
@ -46,7 +46,7 @@ describe('Integration testing run()', () => {
|
||||
nock('https://formulae.brew.sh').get(`/api/formula/${Tool.Repo}.json`).reply(200, jsonTestBrew);
|
||||
const result: main.ActionResult = await main.run();
|
||||
expect(result.exitcode).toBe(0);
|
||||
expect(result.output).toMatch(`hugo v${Tool.TestVersionLatest}`);
|
||||
expect(result.output).toMatch(`Hugo Static Site Generator v${Tool.TestVersionLatest}`);
|
||||
});
|
||||
|
||||
test('succeed in installing the latest extended version', async () => {
|
||||
@ -56,7 +56,7 @@ describe('Integration testing run()', () => {
|
||||
nock('https://formulae.brew.sh').get(`/api/formula/${Tool.Repo}.json`).reply(200, jsonTestBrew);
|
||||
const result: main.ActionResult = await main.run();
|
||||
expect(result.exitcode).toBe(0);
|
||||
expect(result.output).toMatch(`hugo v${Tool.TestVersionLatest}`);
|
||||
expect(result.output).toMatch(`Hugo Static Site Generator v${Tool.TestVersionLatest}`);
|
||||
expect(result.output).toMatch(`extended`);
|
||||
});
|
||||
|
||||
|
@ -11,7 +11,7 @@ inputs:
|
||||
required: false
|
||||
default: 'false'
|
||||
runs:
|
||||
using: 'node20'
|
||||
using: 'node12'
|
||||
main: 'lib/index.js'
|
||||
branding:
|
||||
icon: 'package'
|
||||
|
7136
lib/index.js
Normal file
7136
lib/index.js
Normal file
File diff suppressed because it is too large
Load Diff
21040
package-lock.json
generated
21040
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
63
package.json
63
package.json
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "actions-hugo",
|
||||
"version": "3.0.0",
|
||||
"version": "2.4.13",
|
||||
"description": "GitHub Actions for Hugo",
|
||||
"main": "lib/index.js",
|
||||
"engines": {
|
||||
"node": ">=20.10.0",
|
||||
"npm": ">=10.2.3"
|
||||
"node": ">=12.14.1",
|
||||
"npm": ">=6.13.7"
|
||||
},
|
||||
"scripts": {
|
||||
"all": "npm run format:check && npm run lint && npm test",
|
||||
@ -14,10 +14,17 @@
|
||||
"test": "jest --coverage --verbose",
|
||||
"build": "ncc build ./src/index.ts -o lib",
|
||||
"tsc": "tsc",
|
||||
"format": "prettier --write '**/*.ts'",
|
||||
"format:check": "prettier --check '**/*.ts'",
|
||||
"format": "prettier --write **/*.ts",
|
||||
"format:check": "prettier --check **/*.ts",
|
||||
"release": "standard-version",
|
||||
"postinstall": "npx husky install"
|
||||
"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": [
|
||||
@ -25,7 +32,7 @@
|
||||
"eslint"
|
||||
],
|
||||
"README.md": [
|
||||
"npx doctoc@2.1.0 --github"
|
||||
"npx doctoc@1.4.0 --github"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
@ -47,29 +54,29 @@
|
||||
},
|
||||
"homepage": "https://github.com/peaceiris/actions-hugo#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/io": "^1.1.0",
|
||||
"@actions/tool-cache": "^1.7.2",
|
||||
"@actions/core": "^1.2.6",
|
||||
"@actions/exec": "^1.0.4",
|
||||
"@actions/io": "^1.0.2",
|
||||
"@actions/tool-cache": "^1.6.0",
|
||||
"node-fetch": "^2.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^26.0.20",
|
||||
"@types/node": "~20",
|
||||
"@types/node-fetch": "^2.5.8",
|
||||
"@typescript-eslint/eslint-plugin": "^4.16.1",
|
||||
"@typescript-eslint/parser": "^4.16.1",
|
||||
"@vercel/ncc": "^0.38.1",
|
||||
"eslint": "^7.21.0",
|
||||
"eslint-plugin-jest": "^24.1.5",
|
||||
"husky": "^5.1.3",
|
||||
"jest": "^26.6.3",
|
||||
"jest-circus": "^26.6.3",
|
||||
"lint-staged": "^10.5.4",
|
||||
"nock": "^13.0.10",
|
||||
"prettier": "2.2.1",
|
||||
"standard-version": "^9.1.1",
|
||||
"ts-jest": "^26.5.3",
|
||||
"typescript": "^4.2.3"
|
||||
"@types/jest": "^26.0.14",
|
||||
"@types/node": "~12",
|
||||
"@types/node-fetch": "^2.5.7",
|
||||
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
||||
"@typescript-eslint/parser": "^2.34.0",
|
||||
"@vercel/ncc": "^0.24.1",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-plugin-jest": "^23.20.0",
|
||||
"husky": "^4.3.0",
|
||||
"jest": "^25.5.4",
|
||||
"jest-circus": "^26.5.1",
|
||||
"lint-staged": "^10.4.0",
|
||||
"nock": "^13.0.4",
|
||||
"prettier": "2.1.2",
|
||||
"standard-version": "^9.0.0",
|
||||
"ts-jest": "^25.5.1",
|
||||
"typescript": "^3.9.7"
|
||||
}
|
||||
}
|
||||
|
@ -4,8 +4,8 @@ export enum Tool {
|
||||
Repo = 'hugo',
|
||||
CmdName = 'hugo',
|
||||
CmdOptVersion = 'version',
|
||||
TestVersionLatest = '0.83.1',
|
||||
TestVersionSpec = '0.82.1'
|
||||
TestVersionLatest = '0.62.2',
|
||||
TestVersionSpec = '0.61.0'
|
||||
}
|
||||
|
||||
export enum Action {
|
||||
|
@ -1,12 +0,0 @@
|
||||
export default function getArch(arch: string): string {
|
||||
switch (arch) {
|
||||
case 'x64':
|
||||
return '64bit';
|
||||
case 'arm':
|
||||
return 'ARM';
|
||||
case 'arm64':
|
||||
return 'ARM64';
|
||||
default:
|
||||
throw new Error(`${arch} is not supported`);
|
||||
}
|
||||
}
|
@ -1,12 +1,11 @@
|
||||
export default function getOS(platform: string): string {
|
||||
switch (platform) {
|
||||
case 'linux':
|
||||
return 'Linux';
|
||||
case 'darwin':
|
||||
return 'macOS';
|
||||
case 'win32':
|
||||
return 'Windows';
|
||||
default:
|
||||
throw new Error(`${platform} is not supported`);
|
||||
if (platform === 'linux') {
|
||||
return 'Linux';
|
||||
} else if (platform === 'darwin') {
|
||||
return 'macOS';
|
||||
} else if (platform === 'win32') {
|
||||
return 'Windows';
|
||||
} else {
|
||||
throw new Error(`${platform} is not supported`);
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,4 @@
|
||||
export default function getURL(
|
||||
os: string,
|
||||
arch: string,
|
||||
extended: string,
|
||||
version: string
|
||||
): string {
|
||||
export default function getURL(os: string, extended: string, version: string): string {
|
||||
const extendedStr = (extended: string): string => {
|
||||
if (extended === 'true') {
|
||||
return 'extended_';
|
||||
@ -22,7 +17,7 @@ export default function getURL(
|
||||
}
|
||||
};
|
||||
|
||||
const hugoName = `hugo_${extendedStr(extended)}${version}_${os}-${arch}`;
|
||||
const hugoName = `hugo_${extendedStr(extended)}${version}_${os}-64bit`;
|
||||
const baseURL = 'https://github.com/gohugoio/hugo/releases/download';
|
||||
const url = `${baseURL}/v${version}/${hugoName}.${ext(os)}`;
|
||||
|
||||
|
@ -2,7 +2,6 @@ import * as core from '@actions/core';
|
||||
import * as tc from '@actions/tool-cache';
|
||||
import * as io from '@actions/io';
|
||||
import getOS from './get-os';
|
||||
import getArch from './get-arch';
|
||||
import getURL from './get-url';
|
||||
import * as path from 'path';
|
||||
import {Tool, Action} from './constants';
|
||||
@ -50,10 +49,7 @@ export async function installer(version: string): Promise<void> {
|
||||
const osName: string = getOS(process.platform);
|
||||
core.debug(`Operating System: ${osName}`);
|
||||
|
||||
const archName: string = getArch(process.arch);
|
||||
core.debug(`Processor Architecture: ${archName}`);
|
||||
|
||||
const toolURL: string = getURL(osName, archName, extended, version);
|
||||
const toolURL: string = getURL(osName, extended, version);
|
||||
core.debug(`toolURL: ${toolURL}`);
|
||||
|
||||
const workDir = await createWorkDir();
|
||||
|
@ -1,15 +1,64 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2019"],
|
||||
"module": "commonjs",
|
||||
"target": "ES2019",
|
||||
"sourceMap": true,
|
||||
"outDir": "./lib",
|
||||
"rootDir": "./src",
|
||||
"removeComments": true,
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"esModuleInterop": true,
|
||||
/* 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"]
|
||||
|
Loading…
Reference in New Issue
Block a user