From 55183547703579ab540ca5037ea18bde8ba122cd Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 04:08:46 +0900 Subject: [PATCH 01/19] ci: Add auto assign --- .github/workflows/assign.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/assign.yml diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml new file mode 100644 index 0000000..8505d7a --- /dev/null +++ b/.github/workflows/assign.yml @@ -0,0 +1,30 @@ +name: Auto Assign +run-name: "${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}" + +on: + pull_request: + types: [opened, reopened, ready_for_review] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +defaults: + run: + shell: bash + +jobs: + assign: + runs-on: ubuntu-slim + timeout-minutes: 2 + permissions: + pull-requests: write + steps: + - name: Assign PR to author if no assignees + if: ${{ github.event.pull_request.user.type != 'Bot' && toJSON(github.event.pull_request.assignees) == '[]' }} + run: gh pr edit $NUMBER --add-assignee $ASSIGNEE + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.pull_request.number }} + ASSIGNEE: ${{ github.event.pull_request.user.login }} From dc602b616e2560ec2a76231d9d0c2c22f3273722 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 04:52:22 +0900 Subject: [PATCH 02/19] ci: Add Dependency Review --- .github/workflows/call-dependency-review.yml | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/call-dependency-review.yml diff --git a/.github/workflows/call-dependency-review.yml b/.github/workflows/call-dependency-review.yml new file mode 100644 index 0000000..c2e77d8 --- /dev/null +++ b/.github/workflows/call-dependency-review.yml @@ -0,0 +1,34 @@ +name: Dependency Review (workflow_call) +run-name: "${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}" + +on: workflow_call + +permissions: + contents: read + pull-requests: write + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + dependency-review: + name: Review Dependencies + runs-on: ubuntu-slim + timeout-minutes: 2 + steps: + - name: Checkout Repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Dependency Review + uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2 + with: + deny-licenses: GPL-2.0, GPL-3.0 + fail-on-severity: moderate + comment-summary-in-pr: always From 49d19cf7acdb6d76a5fcfe77b7a2eb6986c5634b Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 05:23:18 +0900 Subject: [PATCH 03/19] ci: Add setup-environment composite action --- .github/actions/setup-environment.yml | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/actions/setup-environment.yml diff --git a/.github/actions/setup-environment.yml b/.github/actions/setup-environment.yml new file mode 100644 index 0000000..43162e2 --- /dev/null +++ b/.github/actions/setup-environment.yml @@ -0,0 +1,34 @@ +name: Setup Environment +description: Setup Bun and install dependencies with caching + +defaults: + run: + shell: bash + +runs: + using: composite + steps: + - name: Setup Bun + uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 + + - name: Restore dependences cache + uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 + id: restore-bun-dependences-cache + with: + path: node_modules + key: ${{ runner.os }}-bun-dependences-${{ hashFiles('**/bun.lock') }} + + - name: Install dependencies + # Install only if cache is not matched. + if: ${{ !contains(steps.restore-bun-dependences-cache.outputs.cache-matched-key, steps.restore-bun-dependences-cache.outputs.cache-primary-key) }} + run: bun install --frozen-lockfile + shell: bash + + - name: Save dependences cache + # Execute cache by default branch only. + if: ${{ github.ref_name == github.event.repository.default_branch && !contains(steps.restore-bun-dependences-cache.outputs.cache-matched-key, steps.restore-bun-dependences-cache.outputs.cache-primary-key) }} + uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 + id: save-dependences-cache + with: + path: node_modules + key: ${{ runner.os }}-bun-dependences-${{ hashFiles('**/bun.lock') }} From f26410d6b06c001d83a8536905ee509d82850e09 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 06:06:14 +0900 Subject: [PATCH 04/19] ci: Add lint and format check --- .github/workflows/call-lint-format.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/call-lint-format.yml diff --git a/.github/workflows/call-lint-format.yml b/.github/workflows/call-lint-format.yml new file mode 100644 index 0000000..2fb99f8 --- /dev/null +++ b/.github/workflows/call-lint-format.yml @@ -0,0 +1,28 @@ +name: Lint & Format Check (workflow_call) +run-name: "${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}" + +on: workflow_call + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + lint-format: + name: Lint & Format Check + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Initialize + uses: ./.github/actions/setup-environment + + - name: Run Lint & Format Check + run: bun run check:source From 6ab41a945959fc6ed150addb05ccd70ce1e89bb4 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 06:09:04 +0900 Subject: [PATCH 05/19] ci: Add type check --- .github/workflows/call-type-check.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/call-type-check.yml diff --git a/.github/workflows/call-type-check.yml b/.github/workflows/call-type-check.yml new file mode 100644 index 0000000..dad9e2b --- /dev/null +++ b/.github/workflows/call-type-check.yml @@ -0,0 +1,28 @@ +name: Type Check (workflow_call) +run-name: "${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}" + +on: workflow_call + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + type-check: + name: TypeScript Type Check + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Initialize + uses: ./.github/actions/setup-environment + + - name: Run type check + run: bun run check:type From 0e7661d84e90c9193f267bde55febbf4cff24a2a Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 06:57:11 +0900 Subject: [PATCH 06/19] ci: Add Export Validation --- .github/workflows/call-export-validation.yml | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/call-export-validation.yml diff --git a/.github/workflows/call-export-validation.yml b/.github/workflows/call-export-validation.yml new file mode 100644 index 0000000..fd487fb --- /dev/null +++ b/.github/workflows/call-export-validation.yml @@ -0,0 +1,38 @@ +name: Export Validation (workflow_call) +run-name: "${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}" + +on: workflow_call + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + export-validation: + name: Export Validation + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Initialize + uses: ./.github/actions/setup-environment + + - name: Build package + run: bun run build + + - name: Verify build outputs + run: | + test -f dist/index.js || (echo "dist/index.js not found" && exit 1) + test -f dist/index.js.map || (echo "dist/index.js.map not found" && exit 1) + test -f dist/index.d.ts || (echo "dist/index.d.ts not found" && exit 1) + echo "Build verification successful" + + - name: Validate exports + run: bun run check-exports From 04c58d7baa20e11c39badc3c279f502b6e5ed7cb Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 07:35:27 +0900 Subject: [PATCH 07/19] ci: Add Codecov config --- .github/codecov.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000..cdbc90f --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,30 @@ +# Codecov configuration for safe-formdata +# This project requires 100% test coverage + +coverage: + precision: 2 + round: down + range: "100...100" + + status: + project: + default: + target: 100% + threshold: 0% + if_ci_failed: error + + patch: + default: + target: 100% + threshold: 0% + if_ci_failed: error + +comment: + layout: "header, diff, flags, components" + behavior: default + require_changes: false + require_base: false + require_head: true + +github_checks: + annotations: true From 94f15cd3c228d784c98e3b9771a052d185abcc7b Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 07:45:10 +0900 Subject: [PATCH 08/19] ci: Add `timeout-minutes` --- .github/workflows/call-export-validation.yml | 1 + .github/workflows/call-lint-format.yml | 1 + .github/workflows/call-type-check.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/call-export-validation.yml b/.github/workflows/call-export-validation.yml index fd487fb..7c9a04a 100644 --- a/.github/workflows/call-export-validation.yml +++ b/.github/workflows/call-export-validation.yml @@ -15,6 +15,7 @@ jobs: export-validation: name: Export Validation runs-on: ubuntu-latest + timeout-minutes: 5 steps: - name: Checkout Repository uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 diff --git a/.github/workflows/call-lint-format.yml b/.github/workflows/call-lint-format.yml index 2fb99f8..2608b90 100644 --- a/.github/workflows/call-lint-format.yml +++ b/.github/workflows/call-lint-format.yml @@ -15,6 +15,7 @@ jobs: lint-format: name: Lint & Format Check runs-on: ubuntu-latest + timeout-minutes: 5 steps: - name: Checkout Repository uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 diff --git a/.github/workflows/call-type-check.yml b/.github/workflows/call-type-check.yml index dad9e2b..8d2b959 100644 --- a/.github/workflows/call-type-check.yml +++ b/.github/workflows/call-type-check.yml @@ -15,6 +15,7 @@ jobs: type-check: name: TypeScript Type Check runs-on: ubuntu-latest + timeout-minutes: 5 steps: - name: Checkout Repository uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 From 7455f6af4c786285ca0f9c2c775f7ae91dbf11f9 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 07:58:24 +0900 Subject: [PATCH 09/19] ci: Add test --- .github/workflows/call-test.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/call-test.yml diff --git a/.github/workflows/call-test.yml b/.github/workflows/call-test.yml new file mode 100644 index 0000000..d86e4cd --- /dev/null +++ b/.github/workflows/call-test.yml @@ -0,0 +1,40 @@ +name: Test (workflow_call) +run-name: "${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}" + +on: + workflow_call: + secrets: + CODECOV_TOKEN: + description: Token for Codecov upload + required: true + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + test: + name: Test + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout Repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Initialize + uses: ./.github/actions/setup-environment + + - name: Run tests with coverage + run: bun run test:coverage + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true From 86db403d7c37f87d7b38bad8e4f781a519b2a655 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 08:31:51 +0900 Subject: [PATCH 10/19] chore: Add some properties --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 51a7c8a..bde8f90 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,10 @@ "type": "git", "url": "git+https://github.com/roottool/safe-formdata.git" }, + "bugs": { + "url": "https://github.com/roottool/safe-formdata/issues" + }, + "homepage": "https://github.com/roottool/safe-formdata#readme", "imports": { "#*": { "types": "./src/*.ts", From bce18522de82606d67b59529e832a8f095c70899 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 08:52:27 +0900 Subject: [PATCH 11/19] ci: Add tag categories for releases --- .github/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..14fd7db --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,22 @@ +changelog: + exclude: + labels: + - "ignore for release" + + categories: + - title: Security Fixes + labels: ["Type: Security", "security"] + - title: Breaking Changes + labels: ["Type: Breaking Change"] + - title: Features + labels: ["Type: Feature"] + - title: Bug Fixes + labels: ["Type: Bug"] + - title: Documentation + labels: ["Type: Documentation"] + - title: CI + labels: ["Type: CI"] + - title: Dependency Updates + labels: ["Type: Dependencies", "dependencies"] + - title: Other Changes + labels: ["*"] From 743a7db00b387b0380dde256afd553e9fe87ae71 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 08:54:27 +0900 Subject: [PATCH 12/19] ci: Add ci workflow --- .github/workflows/ci.yml | 81 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..01f515a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,81 @@ +name: CI +run-name: "${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}" + +on: + push: + branches: [main] + pull_request: + branches: [main] + types: [opened, synchronize, reopened, ready_for_review] + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +# This workflow contains core CI jobs that run on push/pull_request events. +# For additional jobs, create separate workflow_call files (e.g., call-*.yml) +# and invoke them from this workflow. See .github/workflows/call-dependency-review.yml for reference. +jobs: + setup: + name: Setup + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: + pull-requests: read + if: ${{ !github.event.pull_request.draft }} + outputs: + dependencies: ${{ steps.filter.outputs.dependencies }} + typescript: ${{ steps.filter.outputs.typescript }} + steps: + - name: Checkout Repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Initialize + uses: ./.github/actions/setup-environment + + - name: Check diff targets by path filters + uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 + id: filter + with: + filters: | + dependencies: + - 'bun.lock' + typescript: + - 'bun.lock' + - '**/tsconfig*.json' + - '**/*.ts' + - '**/*.tsx' + + lint-format: + needs: [setup] + uses: ./.github/workflows/call-lint-format.yml + + type-check: + needs: [setup] + if: ${{ needs.setup.outputs.typescript == 'true' }} + uses: ./.github/workflows/call-type-check.yml + + test: + needs: [setup] + uses: ./.github/workflows/call-test.yml + secrets: + CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" + + export-validation: + needs: [setup, lint-format, type-check, test] + uses: ./.github/workflows/call-export-validation.yml + + status-check: + name: Status Check + runs-on: ubuntu-slim + timeout-minutes: 1 + needs: [setup, lint-format, type-check, test, export-validation] + if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) + steps: + - run: exit 1 From e719175974afeaf3fe1130ed3b71111b98a42f7a Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 09:17:07 +0900 Subject: [PATCH 13/19] ci: Add publish --- .github/workflows/publish.yml | 78 +++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c2c6f10 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,78 @@ +name: Publish +run-name: "${{ github.workflow }} (${{ github.ref_name }})" + +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]+)? + +defaults: + run: + shell: bash + +jobs: + validate: + name: Validate Version + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout Repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Extract version from tag + id: tag_version + run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + + - name: Extract version from package.json + id: pkg_version + run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT + + - name: Compare versions + run: | + if [ "${{ steps.tag_version.outputs.version }}" != "${{ steps.pkg_version.outputs.version }}" ]; then + echo "Error: Tag version (${{ steps.tag_version.outputs.version }}) does not match package.json version (${{ steps.pkg_version.outputs.version }})" + exit 1 + fi + echo "Version validation successful: v${{ steps.pkg_version.outputs.version }}" + + publish-npm: + name: Publish to npm + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: + contents: write + id-token: write + environment: npm-registry + needs: [validate] + steps: + - name: Checkout Repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + + - name: Initialize + uses: ./.github/actions/setup-environment.yml + + - name: Run prepublishOnly + run: bun run prepublishOnly + + - name: Setup Node.js + uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 + with: + node-version: lts/* + registry-url: 'https://registry.npmjs.org' + + - name: Install latest npm + run: npm install -g npm@latest + + - name: Publish to npm + run: npm publish --provenance --access public + + - name: Create GitHub Release + uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0 + with: + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 158093e24daa8a65fd30a5d00e34c000817764bd Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 09:22:35 +0900 Subject: [PATCH 14/19] ci: Rename to fix ci --- .../{setup-environment.yml => setup-environment/action.yml} | 4 ---- 1 file changed, 4 deletions(-) rename .github/actions/{setup-environment.yml => setup-environment/action.yml} (97%) diff --git a/.github/actions/setup-environment.yml b/.github/actions/setup-environment/action.yml similarity index 97% rename from .github/actions/setup-environment.yml rename to .github/actions/setup-environment/action.yml index 43162e2..e9f14b5 100644 --- a/.github/actions/setup-environment.yml +++ b/.github/actions/setup-environment/action.yml @@ -1,10 +1,6 @@ name: Setup Environment description: Setup Bun and install dependencies with caching -defaults: - run: - shell: bash - runs: using: composite steps: From 9ed706300635550f9c9e656b6c831ce8c1bd35ec Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 09:27:10 +0900 Subject: [PATCH 15/19] ci: Change concurrency group settings --- .github/workflows/call-dependency-review.yml | 4 ---- .github/workflows/call-export-validation.yml | 4 ---- .github/workflows/call-lint-format.yml | 4 ---- .github/workflows/call-test.yml | 4 ---- .github/workflows/call-type-check.yml | 4 ---- .github/workflows/ci.yml | 2 +- 6 files changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/call-dependency-review.yml b/.github/workflows/call-dependency-review.yml index c2e77d8..e0209f2 100644 --- a/.github/workflows/call-dependency-review.yml +++ b/.github/workflows/call-dependency-review.yml @@ -11,10 +11,6 @@ defaults: run: shell: bash -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} - cancel-in-progress: true - jobs: dependency-review: name: Review Dependencies diff --git a/.github/workflows/call-export-validation.yml b/.github/workflows/call-export-validation.yml index 7c9a04a..8d99328 100644 --- a/.github/workflows/call-export-validation.yml +++ b/.github/workflows/call-export-validation.yml @@ -7,10 +7,6 @@ defaults: run: shell: bash -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} - cancel-in-progress: true - jobs: export-validation: name: Export Validation diff --git a/.github/workflows/call-lint-format.yml b/.github/workflows/call-lint-format.yml index 2608b90..4911720 100644 --- a/.github/workflows/call-lint-format.yml +++ b/.github/workflows/call-lint-format.yml @@ -7,10 +7,6 @@ defaults: run: shell: bash -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} - cancel-in-progress: true - jobs: lint-format: name: Lint & Format Check diff --git a/.github/workflows/call-test.yml b/.github/workflows/call-test.yml index d86e4cd..3cd0dc7 100644 --- a/.github/workflows/call-test.yml +++ b/.github/workflows/call-test.yml @@ -12,10 +12,6 @@ defaults: run: shell: bash -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} - cancel-in-progress: true - jobs: test: name: Test diff --git a/.github/workflows/call-type-check.yml b/.github/workflows/call-type-check.yml index 8d2b959..763f94e 100644 --- a/.github/workflows/call-type-check.yml +++ b/.github/workflows/call-type-check.yml @@ -7,10 +7,6 @@ defaults: run: shell: bash -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} - cancel-in-progress: true - jobs: type-check: name: TypeScript Type Check diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01f515a..6dbbad7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ defaults: shell: bash concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true # This workflow contains core CI jobs that run on push/pull_request events. From 8d8b54d0e99ed12e03bb20b8e5f28ce5b721328e Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 09:28:00 +0900 Subject: [PATCH 16/19] style: Format --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c2c6f10..d8ff626 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -62,7 +62,7 @@ jobs: uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 with: node-version: lts/* - registry-url: 'https://registry.npmjs.org' + registry-url: "https://registry.npmjs.org" - name: Install latest npm run: npm install -g npm@latest From 0c47a52e9c18194fe082ce489b639a923b9badd5 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 09:32:10 +0900 Subject: [PATCH 17/19] ci: Add `if` in export-validation --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6dbbad7..f15416c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,7 @@ jobs: export-validation: needs: [setup, lint-format, type-check, test] + if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) uses: ./.github/workflows/call-export-validation.yml status-check: From 05b8c6e2436e003129a4793cfa3ffade051dbf43 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 09:37:43 +0900 Subject: [PATCH 18/19] ci: Fix cordition --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f15416c..adfdc8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: export-validation: needs: [setup, lint-format, type-check, test] - if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) + if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') uses: ./.github/workflows/call-export-validation.yml status-check: From e514d8825e8ca6a75b70f7c030170a2d48df1797 Mon Sep 17 00:00:00 2001 From: roottool Date: Tue, 23 Dec 2025 09:39:25 +0900 Subject: [PATCH 19/19] ci: Fix command --- .github/workflows/call-export-validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/call-export-validation.yml b/.github/workflows/call-export-validation.yml index 8d99328..8d40d2e 100644 --- a/.github/workflows/call-export-validation.yml +++ b/.github/workflows/call-export-validation.yml @@ -32,4 +32,4 @@ jobs: echo "Build verification successful" - name: Validate exports - run: bun run check-exports + run: bun run check:package