From 0426e788fe02c48d14fbbc7c0a1b563dbe49a454 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 10:51:53 +0900 Subject: [PATCH 01/24] chore: remove token --- .github/workflows/cspell.yml | 4 ++-- .github/workflows/deno.yml | 8 ++++++++ .github/workflows/node.js.yml | 21 ++++++++++++++++++++- .github/workflows/size.yml | 15 --------------- .github/workflows/sync-labels.yml | 5 ++--- 5 files changed, 32 insertions(+), 21 deletions(-) diff --git a/.github/workflows/cspell.yml b/.github/workflows/cspell.yml index 71feda22..a0fda1dd 100644 --- a/.github/workflows/cspell.yml +++ b/.github/workflows/cspell.yml @@ -9,5 +9,5 @@ jobs: - uses: actions/checkout@v4 - uses: streetsidesoftware/cspell-action@v5 with: - files: "*.{rs,ts,tsx,md}" - incremental_files_only: false + incremental_files_only: true + strict: false diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 888cad4f..477f0818 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -2,9 +2,17 @@ name: Deno on: pull_request: + paths: + - "**.json" + - "**.ts" + - "**.tsx" push: branches: - main + paths: + - "**.json" + - "**.ts" + - "**.tsx" jobs: fmt: diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3b3cd691..704e1794 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -2,8 +2,16 @@ name: Node CI on: pull_request: + paths: + - "**.json" + - "**.ts" + - "**.tsx" push: - branches: [main] + branches: + - main + paths: + - "**.json" + - "**.tsx" jobs: build: @@ -51,3 +59,14 @@ jobs: with: token: ${{ secrets.github_token }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + compressed-size: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: compressed-size-action + uses: preactjs/compressed-size-action@2.5.0 + with: + repo-token: "${{ secrets.github_token }}" + pattern: "./packages/ui/lib/**/*.{js,css,html,json}" + exclude: "{**/*.map,**/node_modules/**}" diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 13722288..e69de29b 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -1,15 +0,0 @@ -name: compressed-size - -on: [pull_request] -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: compressed-size-action - uses: preactjs/compressed-size-action@2.5.0 - with: - repo-token: "${{ secrets.github_token }}" - pattern: "./packages/ui/lib/**/*.{js,css,html,json}" - exclude: "{**/*.map,**/node_modules/**}" diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index d3ea75aa..d201c1c4 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -1,8 +1,8 @@ name: Sync labels on: + pull_request: workflow_dispatch: - permissions: issues: write @@ -13,6 +13,5 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} - config-file: https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json + config-file: "https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json" delete-other-labels: true From 59f5350c9449f187f529d9a8d96ddb9eda622337 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 10:55:09 +0900 Subject: [PATCH 02/24] chore: load config --- .github/workflows/sync-labels.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index d201c1c4..b9d67b3e 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -13,5 +13,7 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - config-file: "https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json" + config-file: + - https://raw.githubusercontent.com/EndBug/labels/main/labels.yml + - "https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json" delete-other-labels: true From fa621c074892884d3c593168b7a5ffef8e3a55c5 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 10:55:25 +0900 Subject: [PATCH 03/24] fix: skip azu settings --- .github/workflows/sync-labels.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index b9d67b3e..23df4f24 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -15,5 +15,4 @@ jobs: with: config-file: - https://raw.githubusercontent.com/EndBug/labels/main/labels.yml - - "https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json" delete-other-labels: true From 6834d2beea8d6477b5acb9a8b2eba858bb311aaf Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 10:57:30 +0900 Subject: [PATCH 04/24] chore: sync labels --- .github/workflows/sync-labels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 23df4f24..71007442 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -13,6 +13,6 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - config-file: - - https://raw.githubusercontent.com/EndBug/labels/main/labels.yml + config-file: | + https://raw.githubusercontent.com/EndBug/labels/main/labels.yml delete-other-labels: true From 5873838685ec4bf8496826024207a23d987f1765 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:01:03 +0900 Subject: [PATCH 05/24] chore: npm install --- .github/workflows/node.js.yml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 704e1794..aff7348c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,8 +28,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Install dependencies - uses: bahmutov/npm-install@v1 + cache: 'npm' + - run: npm ci - run: npm run build - run: npm run lint @@ -43,8 +43,14 @@ jobs: "npx http-server packages/ui/storybook-static --port 6006 --silent" \ "npx wait-on tcp:6006 && npm test" - - name: Codecov - uses: codecov/codecov-action@v3 + - name: compressed-size-action + uses: preactjs/compressed-size-action@2.5.0 + with: + repo-token: "${{ secrets.github_token }}" + pattern: "./packages/ui/lib/**/*.{js,css,html,json}" + exclude: "{**/*.map,**/node_modules/**}" + + - uses: codecov/codecov-action@v3 chromatic-deployment: runs-on: ubuntu-latest @@ -59,14 +65,4 @@ jobs: with: token: ${{ secrets.github_token }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - compressed-size: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: compressed-size-action - uses: preactjs/compressed-size-action@2.5.0 - with: - repo-token: "${{ secrets.github_token }}" - pattern: "./packages/ui/lib/**/*.{js,css,html,json}" - exclude: "{**/*.map,**/node_modules/**}" From c76a328a88a110b8ccf0d0812c1093d798a68a7e Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:01:36 +0900 Subject: [PATCH 06/24] fix: remove github_token --- .github/workflows/node.js.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index aff7348c..245e8090 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -46,7 +46,6 @@ jobs: - name: compressed-size-action uses: preactjs/compressed-size-action@2.5.0 with: - repo-token: "${{ secrets.github_token }}" pattern: "./packages/ui/lib/**/*.{js,css,html,json}" exclude: "{**/*.map,**/node_modules/**}" @@ -63,6 +62,5 @@ jobs: - name: Publish to Chromatic uses: chromaui/action@v10 with: - token: ${{ secrets.github_token }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} From bfd41780e11a4dda85040c168252a43f67305dbd Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:03:52 +0900 Subject: [PATCH 07/24] choer: update labels --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 71007442..839d54d7 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -14,5 +14,5 @@ jobs: - uses: EndBug/label-sync@v2 with: config-file: | - https://raw.githubusercontent.com/EndBug/labels/main/labels.yml + https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json delete-other-labels: true From 4ae10224f270d380cf5b82e6aa1470eb30984649 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:06:20 +0900 Subject: [PATCH 08/24] feat: add labels --- .github/labels.json | 205 ++++++++++++++++++++++++++++++ .github/workflows/sync-labels.yml | 2 +- 2 files changed, 206 insertions(+), 1 deletion(-) create mode 100644 .github/labels.json diff --git a/.github/labels.json b/.github/labels.json new file mode 100644 index 00000000..f6888ca6 --- /dev/null +++ b/.github/labels.json @@ -0,0 +1,205 @@ +[ + { + "name": "duplicate", + "color": "ededed", + "description": "This issue or Pull Request already exists" + }, + { + "name": "help wanted", + "color": "e99695", + "description": "Extra attention is needed" + }, + { + "name": "good first issue", + "color": "7057ff", + "description": "Good for newcomers", + "aliases": [ + "beginner-friendly", + "beginner", + "good-starter-issue", + "good for beginner", + "Good for beginners", + "starter-issue", + "starter" + ] + }, + { + "name": "Priority: Critical", + "color": "ee0701" + }, + { + "name": "Priority: High", + "color": "d93f0b" + }, + { + "name": "Priority: Medium", + "color": "fbca04" + }, + { + "name": "Priority: Low", + "color": "0e8a16" + }, + { + "name": "Status: Abandoned", + "color": "000000", + "description": "The issue or Pull Request is wontfix", + "aliases": [ + "wontfix", + "invalid" + ] + }, + { + "name": "Status: Blocked", + "color": "ee0701", + "description": "Progress on the issue is Blocked", + "aliases": [ + "blocked" + ] + }, + { + "name": "Status: In Progress", + "description": "Work in Progress", + "color": "cccccc" + }, + { + "name": "Status: Proposal", + "color": "d4c5f9", + "description": "Request for comments", + "aliases": [ + "idea", + "Idea", + "proposal", + "Proposal", + "discussion" + ] + }, + { + "name": "Status: PR Welcome", + "color": "2E7733", + "description": "Welcome to Pull Request", + "aliases": [ + "Patch Welcome", + "Status: Ready for PR" + ] + }, + { + "name": "Status: Review Needed", + "color": "fbca04", + "description": "Request for review comments" + }, + { + "name": "Status: Need More Info", + "color": "F9C90A", + "description": "Lacks enough info to make progress" + }, + { + "name": "Type: Breaking Change", + "color": "b60205", + "description": "Includes breaking changes", + "aliases": [ + "breaking", + "breaking-change" + ] + }, + { + "name": "Type: Bug", + "color": "ee0701", + "description": "Bug or Bug fixes", + "aliases": [ + "bug" + ] + }, + { + "name": "Type: Documentation", + "color": "0e8a16", + "description": "Documentation only changes", + "aliases": [ + "documents", + "document" + ] + }, + { + "name": "Type: Feature", + "color": "1d76db", + "description": "New Feature", + "aliases": [ + "enhancement" + ] + }, + { + "name": "Type: Refactoring", + "color": "fbca04", + "description": "A code change that neither fixes a bug nor adds a feature", + "aliases": [ + "refactor" + ] + }, + { + "name": "Type: Testing", + "color": "257759", + "description": "Adding missing tests or correcting existing tests", + "aliases": [ + "test", + "testing" + ] + }, + { + "name": "Type: Maintenance", + "color": "abd406", + "description": "Repository Maintenance", + "aliases": [ + "greenkeeper", + "maintenance" + ] + }, + { + "name": "Type: CI", + "color": "ffd412", + "description": "Changes to CI configuration files and scripts", + "aliases": [ + "travis", + "ci", + "circleci" + ] + }, + { + "name": "Type: Question", + "color": "cc317c", + "description": "Further information is requested", + "aliases": [ + "question" + ] + }, + { + "name": "Type: Security", + "color": "ee0701", + "description": "Vulnerability disclosure or Fixing security issue", + "aliases": [ + "security" + ] + }, + { + "name": "Type: Dependencies", + "color": "0366d6", + "description": "Dependency issues or Changes to dependency files", + "aliases": [ + "dependencies" + ] + }, + { + "name": "Type: Meta", + "color": "BFD4F2", + "description": "Type: Meta - Related to repository itself", + "aliases": [ + "meta" + ] + }, + { + "name": "Type: Release", + "color": "5319E7", + "description": "Related to release process", + "aliases": [ + "meta" + ] + } +] diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 839d54d7..de27f94b 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -14,5 +14,5 @@ jobs: - uses: EndBug/label-sync@v2 with: config-file: | - https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json + .github/labels.json delete-other-labels: true From 19e82edb06663d63a32fdeac67cb88a768248048 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:09:37 +0900 Subject: [PATCH 09/24] chore: sync labels --- .github/labels.json | 205 ------------------------------ .github/workflows/sync-labels.yml | 2 +- 2 files changed, 1 insertion(+), 206 deletions(-) delete mode 100644 .github/labels.json diff --git a/.github/labels.json b/.github/labels.json deleted file mode 100644 index f6888ca6..00000000 --- a/.github/labels.json +++ /dev/null @@ -1,205 +0,0 @@ -[ - { - "name": "duplicate", - "color": "ededed", - "description": "This issue or Pull Request already exists" - }, - { - "name": "help wanted", - "color": "e99695", - "description": "Extra attention is needed" - }, - { - "name": "good first issue", - "color": "7057ff", - "description": "Good for newcomers", - "aliases": [ - "beginner-friendly", - "beginner", - "good-starter-issue", - "good for beginner", - "Good for beginners", - "starter-issue", - "starter" - ] - }, - { - "name": "Priority: Critical", - "color": "ee0701" - }, - { - "name": "Priority: High", - "color": "d93f0b" - }, - { - "name": "Priority: Medium", - "color": "fbca04" - }, - { - "name": "Priority: Low", - "color": "0e8a16" - }, - { - "name": "Status: Abandoned", - "color": "000000", - "description": "The issue or Pull Request is wontfix", - "aliases": [ - "wontfix", - "invalid" - ] - }, - { - "name": "Status: Blocked", - "color": "ee0701", - "description": "Progress on the issue is Blocked", - "aliases": [ - "blocked" - ] - }, - { - "name": "Status: In Progress", - "description": "Work in Progress", - "color": "cccccc" - }, - { - "name": "Status: Proposal", - "color": "d4c5f9", - "description": "Request for comments", - "aliases": [ - "idea", - "Idea", - "proposal", - "Proposal", - "discussion" - ] - }, - { - "name": "Status: PR Welcome", - "color": "2E7733", - "description": "Welcome to Pull Request", - "aliases": [ - "Patch Welcome", - "Status: Ready for PR" - ] - }, - { - "name": "Status: Review Needed", - "color": "fbca04", - "description": "Request for review comments" - }, - { - "name": "Status: Need More Info", - "color": "F9C90A", - "description": "Lacks enough info to make progress" - }, - { - "name": "Type: Breaking Change", - "color": "b60205", - "description": "Includes breaking changes", - "aliases": [ - "breaking", - "breaking-change" - ] - }, - { - "name": "Type: Bug", - "color": "ee0701", - "description": "Bug or Bug fixes", - "aliases": [ - "bug" - ] - }, - { - "name": "Type: Documentation", - "color": "0e8a16", - "description": "Documentation only changes", - "aliases": [ - "documents", - "document" - ] - }, - { - "name": "Type: Feature", - "color": "1d76db", - "description": "New Feature", - "aliases": [ - "enhancement" - ] - }, - { - "name": "Type: Refactoring", - "color": "fbca04", - "description": "A code change that neither fixes a bug nor adds a feature", - "aliases": [ - "refactor" - ] - }, - { - "name": "Type: Testing", - "color": "257759", - "description": "Adding missing tests or correcting existing tests", - "aliases": [ - "test", - "testing" - ] - }, - { - "name": "Type: Maintenance", - "color": "abd406", - "description": "Repository Maintenance", - "aliases": [ - "greenkeeper", - "maintenance" - ] - }, - { - "name": "Type: CI", - "color": "ffd412", - "description": "Changes to CI configuration files and scripts", - "aliases": [ - "travis", - "ci", - "circleci" - ] - }, - { - "name": "Type: Question", - "color": "cc317c", - "description": "Further information is requested", - "aliases": [ - "question" - ] - }, - { - "name": "Type: Security", - "color": "ee0701", - "description": "Vulnerability disclosure or Fixing security issue", - "aliases": [ - "security" - ] - }, - { - "name": "Type: Dependencies", - "color": "0366d6", - "description": "Dependency issues or Changes to dependency files", - "aliases": [ - "dependencies" - ] - }, - { - "name": "Type: Meta", - "color": "BFD4F2", - "description": "Type: Meta - Related to repository itself", - "aliases": [ - "meta" - ] - }, - { - "name": "Type: Release", - "color": "5319E7", - "description": "Related to release process", - "aliases": [ - "meta" - ] - } -] diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index de27f94b..d3ba05bd 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -14,5 +14,5 @@ jobs: - uses: EndBug/label-sync@v2 with: config-file: | - .github/labels.json + .github/labels.yaml delete-other-labels: true From ef1884c6cb6533d318c064a30d9e29730bd35f58 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:11:14 +0900 Subject: [PATCH 10/24] feat: add context read --- .github/workflows/sync-labels.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index d3ba05bd..8e5a9fe7 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -5,10 +5,12 @@ on: permissions: issues: write + contents: read jobs: labels: runs-on: ubuntu-latest + timeout-minutes: 2 steps: - uses: EndBug/label-sync@v2 From 06f56047f2b5ef7b27988f6e5d1c9be0e8cca288 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:13:08 +0900 Subject: [PATCH 11/24] :thinking: --- .github/workflows/sync-labels.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 8e5a9fe7..1e6af05c 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -15,6 +15,5 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - config-file: | - .github/labels.yaml + config-file: .github/labels.yaml delete-other-labels: true From 3620a7f6fe5c8bc4f341f8fc4680006f3ad66551 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:14:20 +0900 Subject: [PATCH 12/24] :thinking: --- .github/workflows/sync-labels.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 1e6af05c..8b0ff53c 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -15,5 +15,6 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: + token: ${{ secrets.GITHUB_TOKEN }} config-file: .github/labels.yaml delete-other-labels: true From 367b414ffe0f102bbffdb7771569a4fb15fed824 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:17:05 +0900 Subject: [PATCH 13/24] :thinking: --- .github/workflows/sync-labels.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 8b0ff53c..3e0b0eb7 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -7,6 +7,9 @@ permissions: issues: write contents: read +env: + ACTIONS_RUNNER_DEBUG: true + jobs: labels: runs-on: ubuntu-latest From b7d26d2ee5f4a9dcb8e054364bd601a2c9c98e63 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:32:26 +0900 Subject: [PATCH 14/24] :thinking: --- .github/workflows/cspell.yml | 5 ++--- .github/workflows/deno.yml | 8 +++----- .github/workflows/node.js.yml | 3 +-- .github/workflows/size.yml | 0 .github/workflows/sync-labels.yml | 1 - 5 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 .github/workflows/size.yml diff --git a/.github/workflows/cspell.yml b/.github/workflows/cspell.yml index a0fda1dd..2535d55d 100644 --- a/.github/workflows/cspell.yml +++ b/.github/workflows/cspell.yml @@ -1,7 +1,6 @@ -name: "Check spelling" +name: Check spelling on: - pull_request: - + pull_request jobs: spellcheck: runs-on: ubuntu-latest diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 477f0818..c646bd36 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -15,15 +15,13 @@ on: - "**.tsx" jobs: - fmt: + format: runs-on: ubuntu-latest steps: - - name: Setup repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 - - name: Setup Deno - uses: denoland/setup-deno@v1 + - uses: denoland/setup-deno@v1 with: deno-version: v1.x diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 245e8090..088d6ad2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,7 +28,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: 'npm' + cache: "npm" - run: npm ci - run: npm run build @@ -63,4 +63,3 @@ jobs: uses: chromaui/action@v10 with: projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 3e0b0eb7..466e2ce3 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -18,6 +18,5 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} config-file: .github/labels.yaml delete-other-labels: true From 590d4d5f8d5ad03999feaf353e35dd098eac4b55 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:34:12 +0900 Subject: [PATCH 15/24] chore: rename labels --- .github/workflows/sync-labels.yml | 2 +- .github/labels.yaml => labels.yaml | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/labels.yaml => labels.yaml (100%) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 466e2ce3..9cf786d3 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -18,5 +18,5 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - config-file: .github/labels.yaml + config-file: labels.yaml delete-other-labels: true diff --git a/.github/labels.yaml b/labels.yaml similarity index 100% rename from .github/labels.yaml rename to labels.yaml From 69d38c6a7cfb3e79c4ca93107f013a28ecc9c219 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:35:21 +0900 Subject: [PATCH 16/24] chore: rename labels --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 9cf786d3..1429e13b 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -18,5 +18,5 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - config-file: labels.yaml + config-file: ./labels.yaml delete-other-labels: true From 74f18aa78844180c7d73a6fddb4e8ccf98e2173b Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:37:26 +0900 Subject: [PATCH 17/24] :thinking: --- .github/workflows/sync-labels.yml | 3 ++- labels.yaml => labels.yml | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename labels.yaml => labels.yml (100%) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 1429e13b..a41eff2d 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -18,5 +18,6 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - config-file: ./labels.yaml + config-file: | + labels.yml delete-other-labels: true diff --git a/labels.yaml b/labels.yml similarity index 100% rename from labels.yaml rename to labels.yml From f88babc75d1e330732167fa9a21d8d638583c95b Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 11:40:24 +0900 Subject: [PATCH 18/24] chore: load uri --- .github/workflows/sync-labels.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index a41eff2d..51a5ccae 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -5,7 +5,6 @@ on: permissions: issues: write - contents: read env: ACTIONS_RUNNER_DEBUG: true @@ -19,5 +18,5 @@ jobs: - uses: EndBug/label-sync@v2 with: config-file: | - labels.yml + https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json delete-other-labels: true From 938be68400f6a0c6ccd37a92b87ebb680be8383f Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:03:48 +0900 Subject: [PATCH 19/24] fix: load settings --- labels.yml => .github/labels.yaml | 0 .github/workflows/sync-labels.yml | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) rename labels.yml => .github/labels.yaml (100%) diff --git a/labels.yml b/.github/labels.yaml similarity index 100% rename from labels.yml rename to .github/labels.yaml diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 51a5ccae..139fa8c3 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -17,6 +17,5 @@ jobs: steps: - uses: EndBug/label-sync@v2 with: - config-file: | - https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json + config-file: .github/labels.yaml delete-other-labels: true From 4ce7a85d6aeafa53110fa0ef8d586c333e729eb7 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:05:21 +0900 Subject: [PATCH 20/24] skip sync --- .github/workflows/sync-labels.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 139fa8c3..72224067 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -1,6 +1,10 @@ name: Sync labels on: - pull_request: + push: + branches: + - main + paths: + - '.github/labels.yaml' workflow_dispatch: permissions: From 73081d2ad44d7550c2c0318d522d3c93356d0da4 Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:06:08 +0900 Subject: [PATCH 21/24] chore: sync labels --- .github/workflows/sync-labels.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 72224067..3476b3b6 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -1,4 +1,5 @@ name: Sync labels + on: push: branches: @@ -9,17 +10,17 @@ on: permissions: issues: write - -env: - ACTIONS_RUNNER_DEBUG: true + contents: read jobs: - labels: + label_sync: runs-on: ubuntu-latest timeout-minutes: 2 - steps: + - uses: actions/checkout@v3 - uses: EndBug/label-sync@v2 with: + token: ${{ secrets.GITHUB_TOKEN }} config-file: .github/labels.yaml delete-other-labels: true + From cdfb02075abeeed4f0146bb5c2be1ba31b612d2d Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:07:19 +0900 Subject: [PATCH 22/24] fix: revet yml --- .github/workflows/cspell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cspell.yml b/.github/workflows/cspell.yml index 2535d55d..ac88c374 100644 --- a/.github/workflows/cspell.yml +++ b/.github/workflows/cspell.yml @@ -1,6 +1,6 @@ name: Check spelling on: - pull_request + pull_request: jobs: spellcheck: runs-on: ubuntu-latest From dd04d3aa5481c879e7682618401517f8b2c5714c Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:07:36 +0900 Subject: [PATCH 23/24] foramt --- .github/labels.yaml | 79 ++++++++++++----------------- .github/workflows/export-labels.yml | 1 - .github/workflows/sync-labels.yml | 3 +- 3 files changed, 33 insertions(+), 50 deletions(-) diff --git a/.github/labels.yaml b/.github/labels.yaml index 25b13d83..3a0623a4 100644 --- a/.github/labels.yaml +++ b/.github/labels.yaml @@ -1,75 +1,60 @@ -- - name: 'good first issue' - color: '5319e7' - description: 'Good for newcomers' +- name: "good first issue" + color: "5319e7" + description: "Good for newcomers" aliases: [] -- - name: 'help wanted' - color: '008672' - description: 'Extra attention is needed' +- name: "help wanted" + color: "008672" + description: "Extra attention is needed" aliases: [] -- - name: 'status: pending' +- name: "status: pending" color: c5def5 - description: 'More info is needed before deciding what to do' + description: "More info is needed before deciding what to do" aliases: [] -- - name: 'status: pinned' +- name: "status: pinned" color: 0052cc - description: 'Should not be labeled as stale' + description: "Should not be labeled as stale" aliases: [] -- - name: 'status: stale' +- name: "status: stale" color: fbca04 - description: 'Inactive issues and PRs' + description: "Inactive issues and PRs" aliases: [] -- - name: 'status: wontfix' +- name: "status: wontfix" color: cfd3d7 - description: 'This will not be worked on' + description: "This will not be worked on" aliases: [] -- - name: 'type: bug' +- name: "type: bug" color: d73a4a - description: 'Verified problems that need to be worked on' + description: "Verified problems that need to be worked on" aliases: [] -- - name: 'type: chore' +- name: "type: chore" color: C5DEF5 - description: 'Code changes that neither fix bugs nor add features (refactoring, dependency changes, ...)' + description: "Code changes that neither fix bugs nor add features (refactoring, dependency changes, ...)" aliases: [] -- - name: 'type: docs' +- name: "type: docs" color: C5DEF5 - description: 'Documentation changes' + description: "Documentation changes" aliases: [] -- - name: 'type: duplicate' +- name: "type: duplicate" color: cfd3d7 - description: 'This issue or pull request already exists' + description: "This issue or pull request already exists" aliases: [] -- - name: 'type: feature' +- name: "type: feature" color: 0E8A16 - description: 'New feature or feature request' + description: "New feature or feature request" aliases: [] -- - name: 'type: fix' +- name: "type: fix" color: 1D76DB - description: 'Updates to existing functionalities' + description: "Updates to existing functionalities" aliases: [] -- - name: 'type: invalid' +- name: "type: invalid" color: e4e669 - description: 'This doesn''t seem right' + description: "This doesn't seem right" aliases: [] -- - name: 'type: not a bug' +- name: "type: not a bug" color: 0e8a16 - description: 'Reports that happen not be our fault' + description: "Reports that happen not be our fault" aliases: [] -- - name: 'type: question' +- name: "type: question" color: d876e3 - description: 'Further information is requested' + description: "Further information is requested" aliases: [] diff --git a/.github/workflows/export-labels.yml b/.github/workflows/export-labels.yml index 4153fd43..da644c0b 100644 --- a/.github/workflows/export-labels.yml +++ b/.github/workflows/export-labels.yml @@ -41,4 +41,3 @@ jobs: branch: create-pull-request/patch-export-label add-paths: | .github/labels.yaml - diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 3476b3b6..76994395 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -5,7 +5,7 @@ on: branches: - main paths: - - '.github/labels.yaml' + - ".github/labels.yaml" workflow_dispatch: permissions: @@ -23,4 +23,3 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} config-file: .github/labels.yaml delete-other-labels: true - From 3c1b145ea01e34d7e194a1aee7db1a65fc946d0a Mon Sep 17 00:00:00 2001 From: Keisuke Umeno <9renpoto@gmail.com> Date: Sun, 31 Dec 2023 12:08:51 +0900 Subject: [PATCH 24/24] fix: skip build --- .github/workflows/node.js.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 088d6ad2..7ad0b33a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -2,15 +2,12 @@ name: Node CI on: pull_request: - paths: - - "**.json" - - "**.ts" - - "**.tsx" push: branches: - main paths: - "**.json" + - "**.ts" - "**.tsx" jobs: