From c3ee4e627d701bb78d8c924987444c4b62481887 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:08:59 +0300 Subject: [PATCH 01/13] add changeset validation workflow --- .github/workflows/changeset.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/changeset.yml diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml new file mode 100644 index 0000000000..05a051d68f --- /dev/null +++ b/.github/workflows/changeset.yml @@ -0,0 +1,21 @@ +name: Changeset + +on: + push: + branches: + - main + pull_request: + +jobs: + changeset: + name: Validate changeset + runs-on: depot-ubuntu-22.04-16 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup + + - name: Changeset + run: pnpm changeset From 15fdd611866144ba5e0b6b3c5ee08f54d4afb34c Mon Sep 17 00:00:00 2001 From: Karolis Ramanauskas Date: Tue, 27 Aug 2024 12:14:15 +0300 Subject: [PATCH 02/13] Update .github/workflows/changeset.yml Co-authored-by: Kevin Ingersoll --- .github/workflows/changeset.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 05a051d68f..370d746468 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -18,4 +18,4 @@ jobs: uses: ./.github/actions/setup - name: Changeset - run: pnpm changeset + run: pnpm changeset status From 6f55edbadf2ad7b56243c0c32d776e9e820dbaac Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:17:59 +0300 Subject: [PATCH 03/13] only run if files inside .changeset change --- .github/workflows/changeset.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 370d746468..37382141f7 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -1,10 +1,9 @@ name: Changeset on: - push: - branches: - - main pull_request: + paths: + - ".changeset/**" jobs: changeset: From 1145fde514c0fbcbaa06e97f79b76b4e6c84d114 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:19:31 +0300 Subject: [PATCH 04/13] test changeset validation --- .changeset/real-waves-bathe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/real-waves-bathe.md b/.changeset/real-waves-bathe.md index 2dbf46f92f..2ce4d92325 100644 --- a/.changeset/real-waves-bathe.md +++ b/.changeset/real-waves-bathe.md @@ -2,4 +2,4 @@ "create-mud": patch --- -New projects created with `pnpm create mud` now include the World Explorer and SQLite indexer running as additional services. +New projects created with `pnpm create mud` now include the World Explorer and SQLite indexer running as additional services... From 8fdc58f2f81b3757f882c05e51b04281b92ca4ac Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:20:22 +0300 Subject: [PATCH 05/13] test invalid changeset --- .changeset/real-waves-bathe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/real-waves-bathe.md b/.changeset/real-waves-bathe.md index 2ce4d92325..60e24bebe2 100644 --- a/.changeset/real-waves-bathe.md +++ b/.changeset/real-waves-bathe.md @@ -1,5 +1,5 @@ --- -"create-mud": patch +"@latticexyz/create-mud": patch --- New projects created with `pnpm create mud` now include the World Explorer and SQLite indexer running as additional services... From c0d10fd71750371c5013cf8d27d60dd2cb54326e Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:21:14 +0300 Subject: [PATCH 06/13] update workflow paths --- .github/workflows/changeset.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 37382141f7..83ef16f05f 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -2,8 +2,6 @@ name: Changeset on: pull_request: - paths: - - ".changeset/**" jobs: changeset: From 913d828c6cdbf95ea19595412e167d065357f265 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:25:17 +0300 Subject: [PATCH 07/13] only run if .changeset is updated --- .github/workflows/changeset.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 83ef16f05f..8f52529158 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -1,7 +1,14 @@ name: Changeset on: + push: + branches: + - "main" + paths-ignore: + - ".changeset/**" pull_request: + paths: + - ".changeset/**" jobs: changeset: From 4f2bfcd57367c3c24bdc1e45768b0ecf85edaf19 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:27:16 +0300 Subject: [PATCH 08/13] include all paths for changeet workflow --- .changeset/real-waves-bathe.md | 4 ++-- .github/workflows/changeset.yml | 4 ---- packages/explorer/package.json | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.changeset/real-waves-bathe.md b/.changeset/real-waves-bathe.md index 60e24bebe2..2dbf46f92f 100644 --- a/.changeset/real-waves-bathe.md +++ b/.changeset/real-waves-bathe.md @@ -1,5 +1,5 @@ --- -"@latticexyz/create-mud": patch +"create-mud": patch --- -New projects created with `pnpm create mud` now include the World Explorer and SQLite indexer running as additional services... +New projects created with `pnpm create mud` now include the World Explorer and SQLite indexer running as additional services. diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 8f52529158..467dc8be51 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -4,11 +4,7 @@ on: push: branches: - "main" - paths-ignore: - - ".changeset/**" pull_request: - paths: - - ".changeset/**" jobs: changeset: diff --git a/packages/explorer/package.json b/packages/explorer/package.json index 120615479b..93860eaa3b 100644 --- a/packages/explorer/package.json +++ b/packages/explorer/package.json @@ -1,7 +1,7 @@ { "name": "@latticexyz/explorer", "version": "2.1.1", - "description": "Explorer is a tool for visually exploring and manipulating the state of worlds", + "description": "Explorer is a tool for visually exploring and manipulating the state of worlds.", "type": "module", "bin": { "explorer": "./dist/explorer.js" From ad9745d38158ca3d99b0f9b4ba49ce34ceed4fa6 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:28:05 +0300 Subject: [PATCH 09/13] undo explorer description change --- packages/explorer/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/explorer/package.json b/packages/explorer/package.json index 93860eaa3b..120615479b 100644 --- a/packages/explorer/package.json +++ b/packages/explorer/package.json @@ -1,7 +1,7 @@ { "name": "@latticexyz/explorer", "version": "2.1.1", - "description": "Explorer is a tool for visually exploring and manipulating the state of worlds.", + "description": "Explorer is a tool for visually exploring and manipulating the state of worlds", "type": "module", "bin": { "explorer": "./dist/explorer.js" From 3ca343fb47309caef88442154917d858b68cb59c Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:32:23 +0300 Subject: [PATCH 10/13] only run on pull_request --- .github/workflows/changeset.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 467dc8be51..83ef16f05f 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -1,9 +1,6 @@ name: Changeset on: - push: - branches: - - "main" pull_request: jobs: From 0a4022a207396e0bcfbe806c5550a49610c426b0 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:37:36 +0300 Subject: [PATCH 11/13] validate status from main --- .github/workflows/changeset.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 83ef16f05f..bdaffb8781 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -10,9 +10,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Setup uses: ./.github/actions/setup - name: Changeset - run: pnpm changeset status + run: pnpm changeset status --since origin/main From 012e117e5b5020e4d488a4fdd0efb7a7fa3056d6 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:42:40 +0300 Subject: [PATCH 12/13] validate workflow for invalid changeset --- .changeset/real-waves-bathe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/real-waves-bathe.md b/.changeset/real-waves-bathe.md index 2dbf46f92f..2d25a2af8d 100644 --- a/.changeset/real-waves-bathe.md +++ b/.changeset/real-waves-bathe.md @@ -1,5 +1,5 @@ --- -"create-mud": patch +"@l/create-mud": patch --- New projects created with `pnpm create mud` now include the World Explorer and SQLite indexer running as additional services. From 5fc45e49690362b87de9ee7767b23ee1e0f74db2 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 27 Aug 2024 12:44:52 +0300 Subject: [PATCH 13/13] validate workflow for valid changeset --- .changeset/real-waves-bathe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/real-waves-bathe.md b/.changeset/real-waves-bathe.md index 2d25a2af8d..2dbf46f92f 100644 --- a/.changeset/real-waves-bathe.md +++ b/.changeset/real-waves-bathe.md @@ -1,5 +1,5 @@ --- -"@l/create-mud": patch +"create-mud": patch --- New projects created with `pnpm create mud` now include the World Explorer and SQLite indexer running as additional services.