This repository was archived by the owner on Oct 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 128
Update module configuration #230
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
663db30
Update project configuration
gantunesr dfe207a
Update project configuration
gantunesr 264f75d
Update PR template
gantunesr 8312377
Update configuration
gantunesr a38872a
Update node version to 14
gantunesr ab62050
Solve lint issue
gantunesr 55e761e
Update coverageThreshold
gantunesr 0c9629e
Update node version in build-lint-test workflow
gantunesr 0da6e06
Add step to clear cache
gantunesr 4f6737a
Revert "Add step to clear cache"
gantunesr 869b481
Add step to clear cache
gantunesr 3a20107
Revert "Add step to clear cache"
gantunesr 9120050
Solve typo
gantunesr b634fe2
Update .github/pull_request_template.md
gantunesr d7f8b4d
Update .github/pull_request_template.md
gantunesr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| ## Description | ||
|
|
||
| <!-- | ||
| Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: | ||
|
|
||
| * What is the current state of things and why does it need to change? | ||
| * What is the solution your changes offer and how does it work? | ||
| * Are you introducing a breaking change (renaming, removing, or changing a part of a public-facing interface)? | ||
| --> | ||
|
|
||
| ## Changes | ||
|
|
||
| <!-- | ||
| Pretend that you're updating a changelog. How would you categorize your changes? | ||
|
|
||
| CATEGORY is one of: | ||
|
|
||
| - BREAKING | ||
| - ADDED | ||
| - CHANGED | ||
| - DEPRECATED | ||
| - REMOVED | ||
| - FIXED | ||
|
|
||
| (Security-related changes should go through the Security Advisory process.) | ||
| --> | ||
|
|
||
| - **<CATEGORY>**: Your change here | ||
| - **<CATEGORY>**: Your change here | ||
| - **<CATEGORY>**: Your change here | ||
|
|
||
| ## References | ||
|
|
||
| <!-- | ||
| Are there any issues or other links that reviewers should consult to understand this pull request better? For instance: | ||
|
|
||
| * Fixes #12345 | ||
| * See: #67890 | ||
| --> | ||
|
|
||
| ## Checklist | ||
|
|
||
| - [ ] I've updated the test suite for new or updated code as appropriate | ||
| - [ ] I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc) | ||
| - [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Publish docs to GitHub Pages | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| destination_dir: | ||
| required: true | ||
| type: string | ||
| secrets: | ||
| PUBLISH_DOCS_TOKEN: | ||
| required: true | ||
|
|
||
| jobs: | ||
| publish-docs-to-gh-pages: | ||
| name: Publish docs to GitHub Pages | ||
| runs-on: ubuntu-latest | ||
| environment: github-pages | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - name: Ensure `destination_dir` is not empty | ||
| if: ${{ inputs.destination_dir == '' }} | ||
| run: exit 1 | ||
| - name: Checkout the repository | ||
| uses: actions/checkout@v3 | ||
| - name: Use Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'yarn' | ||
| - name: Install npm dependencies | ||
| run: yarn --immutable | ||
| - name: Run build script | ||
| run: yarn build:docs | ||
| - name: Deploy to `${{ inputs.destination_dir }}` directory of `gh-pages` branch | ||
| uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 | ||
| with: | ||
| # This `PUBLISH_DOCS_TOKEN` needs to be manually set per-repository. | ||
| # Look in the repository settings under "Environments", and set this token in the `github-pages` environment. | ||
| personal_token: ${{ secrets.PUBLISH_DOCS_TOKEN }} | ||
| publish_dir: ./docs | ||
| destination_dir: ${{ inputs.destination_dir }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: Publish main branch docs to GitHub Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: main | ||
|
|
||
| jobs: | ||
| publish-to-gh-pages: | ||
| name: Publish docs to `staging` directory of `gh-pages` branch | ||
| permissions: | ||
| contents: write | ||
| uses: ./.github/workflows/publish-docs.yml | ||
| with: | ||
| destination_dir: staging | ||
| secrets: | ||
| PUBLISH_DOCS_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Publish release candidate docs to GitHub Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: 'release/**' | ||
|
|
||
| jobs: | ||
| get-release-version: | ||
| name: Get release version | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| release-version: ${{ steps.release-name.outputs.RELEASE_VERSION }} | ||
| steps: | ||
| - name: Extract release version from branch name | ||
| id: release-name | ||
| run: | | ||
| BRANCH_NAME='${{ github.ref_name }}' | ||
| echo "RELEASE_VERSION=v${BRANCH_NAME#release/}" >> "$GITHUB_OUTPUT" | ||
| publish-to-gh-pages: | ||
| name: Publish docs to `rc-${{ needs.get-release-version.outputs.release-version }}` directory of `gh-pages` branch | ||
| permissions: | ||
| contents: write | ||
| uses: ./.github/workflows/publish-docs.yml | ||
| needs: get-release-version | ||
| with: | ||
| destination_dir: rc-${{ needs.get-release-version.outputs.release-version }} | ||
| secrets: | ||
| PUBLISH_DOCS_TOKEN: ${{ secrets.PUBLISH_DOCS_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.