-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
372 additions
and
388 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
root = true | ||
|
||
[*] | ||
indent_size = 2 | ||
indent_size = 4 |
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 🤔 Questions and Help | ||
about: Issues are dedicated to bugs, if you have any question, please use the dedicated GitHub discussion category. | ||
- name: 🤔 Questions and Help | ||
about: Issues are dedicated to bugs, if you have any question, please use the dedicated GitHub discussion category. |
This file contains 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 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 |
---|---|---|
@@ -1,61 +1,61 @@ | ||
name: Continous delivery | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
integrate: | ||
uses: ./.github/workflows/workflow.yml | ||
release: | ||
timeout-minutes: 5 | ||
needs: integrate | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- name: Get node version | ||
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
id: node | ||
- name: Setup node ${{ steps.node.outputs.version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ steps.node.outputs.version }} | ||
cache: pnpm | ||
- name: Setup .npmrc | ||
run: | | ||
cat << EOF > "$HOME/.npmrc" | ||
//registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
EOF | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Publish pre-release version(s) | ||
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')" | ||
run: | | ||
pnpm --filter=\!@examples/\* --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}" | ||
pnpm --filter=\!@examples/\* --recursive exec pnpm publish --tag next --no-git-checks | ||
- name: Create release pull request | ||
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')" | ||
uses: changesets/action@v1 | ||
with: | ||
commit: "chore: release package(s)" | ||
title: "chore: release package(s)" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish stable version(s) | ||
if: "contains(github.event.head_commit.message, 'chore: release package(s)')" | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm release:version | ||
publish: pnpm release:publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
integrate: | ||
uses: ./.github/workflows/workflow.yml | ||
release: | ||
timeout-minutes: 5 | ||
needs: integrate | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- name: Get node version | ||
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
id: node | ||
- name: Setup node ${{ steps.node.outputs.version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ steps.node.outputs.version }} | ||
cache: pnpm | ||
- name: Setup .npmrc | ||
run: | | ||
cat << EOF > "$HOME/.npmrc" | ||
//registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
EOF | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Publish pre-release version(s) | ||
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')" | ||
run: | | ||
pnpm --filter=\!@examples/\* --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}" | ||
pnpm --filter=\!@examples/\* --recursive exec pnpm publish --tag next --no-git-checks | ||
- name: Create release pull request | ||
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')" | ||
uses: changesets/action@v1 | ||
with: | ||
commit: "chore: release package(s)" | ||
title: "chore: release package(s)" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish stable version(s) | ||
if: "contains(github.event.head_commit.message, 'chore: release package(s)')" | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm release:version | ||
publish: pnpm release:publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: Continuous integration | ||
|
||
on: | ||
push: | ||
branches-ignore: main | ||
push: | ||
branches-ignore: main | ||
|
||
jobs: | ||
main: | ||
uses: ./.github/workflows/workflow.yml | ||
main: | ||
uses: ./.github/workflows/workflow.yml |
This file contains 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 |
---|---|---|
@@ -1,48 +1,48 @@ | ||
name: Conventional commit | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited] | ||
pull_request: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
main: | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
id: check_pr_rule | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
types: | | ||
build | ||
chore | ||
ci | ||
docs | ||
feat | ||
fix | ||
perf | ||
refactor | ||
revert | ||
style | ||
test | ||
requireScope: false | ||
subjectPattern: ^(?![A-Z]).+$ | ||
subjectPatternError: The subject must start with a lowercase character | ||
# Create a sticky comment to display the detailed error | ||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
if: always() && (steps.check_pr_rule.outputs.error_message != null) | ||
with: | ||
header: check_pr_comment | ||
message: | | ||
Pull request titles must follow the [Conventional Commits specification](https://www.conventionalcommits.org/). | ||
Please adjust your title following: | ||
``` | ||
${{ steps.check_pr_rule.outputs.error_message }} | ||
``` | ||
# Delete a previous comment when the issue has been resolved | ||
- if: ${{ steps.check_pr_rule.outputs.error_message == null }} | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: check_pr_comment | ||
delete: true | ||
main: | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
id: check_pr_rule | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
types: | | ||
build | ||
chore | ||
ci | ||
docs | ||
feat | ||
fix | ||
perf | ||
refactor | ||
revert | ||
style | ||
test | ||
requireScope: false | ||
subjectPattern: ^(?![A-Z]).+$ | ||
subjectPatternError: The subject must start with a lowercase character | ||
# Create a sticky comment to display the detailed error | ||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
if: always() && (steps.check_pr_rule.outputs.error_message != null) | ||
with: | ||
header: check_pr_comment | ||
message: | | ||
Pull request titles must follow the [Conventional Commits specification](https://www.conventionalcommits.org/). | ||
Please adjust your title following: | ||
``` | ||
${{ steps.check_pr_rule.outputs.error_message }} | ||
``` | ||
# Delete a previous comment when the issue has been resolved | ||
- if: ${{ steps.check_pr_rule.outputs.error_message == null }} | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: check_pr_comment | ||
delete: true |
Oops, something went wrong.