From 4125e7f793b3a29cd49926a72481022da8bd6b0f Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Mon, 23 Sep 2024 23:10:20 -0300 Subject: [PATCH 1/6] chore: bump turbo --- .github/workflows/ci-pr.yml | 1 + package.json | 2 +- turbo.json | 2 +- yarn.lock | 60 ++++++++++++++++++------------------- 4 files changed, 33 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 8ca41a60e1..5f295beb06 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -31,6 +31,7 @@ jobs: **/node_modules .yarn/cache key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} + - uses: rharkor/caching-for-turbo@v1.5 - name: Turbo Cache id: turbo-cache uses: actions/cache@v3 diff --git a/package.json b/package.json index 1b8e78e695..22208d18c1 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "husky": "~9.0.11", "hygen": "~6.1.5", "pinst": "~3.0.0", - "turbo": "~2.0.11", + "turbo": "~2.1.2", "update-readme": "workspace:~", "webpack": "~5.78.0" }, diff --git a/turbo.json b/turbo.json index d0127b9a90..f1f856338c 100644 --- a/turbo.json +++ b/turbo.json @@ -16,7 +16,7 @@ "dependsOn": ["build"] }, "build-storybook": { - "dependsOn": ["^build"], + "dependsOn": ["build", "^build"], "outputs": ["storybook-static/**"] } } diff --git a/yarn.lock b/yarn.lock index 87f850ce9c..9f66f3568b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4536,7 +4536,7 @@ __metadata: husky: "npm:~9.0.11" hygen: "npm:~6.1.5" pinst: "npm:~3.0.0" - turbo: "npm:~2.0.11" + turbo: "npm:~2.1.2" update-readme: "workspace:~" webpack: "npm:~5.78.0" languageName: unknown @@ -21269,58 +21269,58 @@ __metadata: languageName: node linkType: hard -"turbo-darwin-64@npm:2.0.11": - version: 2.0.11 - resolution: "turbo-darwin-64@npm:2.0.11" +"turbo-darwin-64@npm:2.1.2": + version: 2.1.2 + resolution: "turbo-darwin-64@npm:2.1.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"turbo-darwin-arm64@npm:2.0.11": - version: 2.0.11 - resolution: "turbo-darwin-arm64@npm:2.0.11" +"turbo-darwin-arm64@npm:2.1.2": + version: 2.1.2 + resolution: "turbo-darwin-arm64@npm:2.1.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"turbo-linux-64@npm:2.0.11": - version: 2.0.11 - resolution: "turbo-linux-64@npm:2.0.11" +"turbo-linux-64@npm:2.1.2": + version: 2.1.2 + resolution: "turbo-linux-64@npm:2.1.2" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"turbo-linux-arm64@npm:2.0.11": - version: 2.0.11 - resolution: "turbo-linux-arm64@npm:2.0.11" +"turbo-linux-arm64@npm:2.1.2": + version: 2.1.2 + resolution: "turbo-linux-arm64@npm:2.1.2" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"turbo-windows-64@npm:2.0.11": - version: 2.0.11 - resolution: "turbo-windows-64@npm:2.0.11" +"turbo-windows-64@npm:2.1.2": + version: 2.1.2 + resolution: "turbo-windows-64@npm:2.1.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"turbo-windows-arm64@npm:2.0.11": - version: 2.0.11 - resolution: "turbo-windows-arm64@npm:2.0.11" +"turbo-windows-arm64@npm:2.1.2": + version: 2.1.2 + resolution: "turbo-windows-arm64@npm:2.1.2" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"turbo@npm:~2.0.11": - version: 2.0.11 - resolution: "turbo@npm:2.0.11" - dependencies: - turbo-darwin-64: "npm:2.0.11" - turbo-darwin-arm64: "npm:2.0.11" - turbo-linux-64: "npm:2.0.11" - turbo-linux-arm64: "npm:2.0.11" - turbo-windows-64: "npm:2.0.11" - turbo-windows-arm64: "npm:2.0.11" +"turbo@npm:~2.1.2": + version: 2.1.2 + resolution: "turbo@npm:2.1.2" + dependencies: + turbo-darwin-64: "npm:2.1.2" + turbo-darwin-arm64: "npm:2.1.2" + turbo-linux-64: "npm:2.1.2" + turbo-linux-arm64: "npm:2.1.2" + turbo-windows-64: "npm:2.1.2" + turbo-windows-arm64: "npm:2.1.2" dependenciesMeta: turbo-darwin-64: optional: true @@ -21336,7 +21336,7 @@ __metadata: optional: true bin: turbo: bin/turbo - checksum: 10/c00a0f5c33388055f1e4586738415e6ddb7689ace1fec1cc97766c058c62498b2a4d64b553c22768e5d7e53be9b40c5b663b4bcc388ee75f6e130445b5512fbc + checksum: 10/8dea62fa29ff9ca6fc56b19c1558d2b2bf628e71de109bcd82374e2d745d2f825559c54f9c56d60449f4ddbb2b2d5e2d064a9d814474a7b72e058d6236f85703 languageName: node linkType: hard From d987497eb6c6d41f8aa691a7c56aae39027ac035 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Mon, 23 Sep 2024 23:21:18 -0300 Subject: [PATCH 2/6] remove useless cache step --- .github/workflows/cd.yml | 25 +++++++------------------ .github/workflows/ci-pr.yml | 10 ++-------- 2 files changed, 9 insertions(+), 26 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c372e45e71..436150eb81 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -18,19 +18,14 @@ jobs: branch-name: ${{ steps.set-branch-name.outputs.branch-name }} steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 + id: setup-node with: node-version: "22.2.0" cache: "yarn" - - uses: actions/cache@v3 - id: yarn-cache - with: - path: | - **/node_modules - .yarn/cache - key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} + - uses: rharkor/caching-for-turbo@v1.5 - run: yarn install - if: steps.yarn-cache.outputs.cache-hit != 'true' + if: steps.setup-node.outputs.cache-hit != 'true' - run: yarn run ci - run: yarn run docs - uses: actions/upload-artifact@v3 @@ -64,25 +59,19 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 + id: setup-node with: node-version: "22.2.0" registry-url: "https://registry.npmjs.org" scope: "@rocket.chat" cache: "yarn" - - uses: actions/cache@v3 - id: yarn-cache - with: - path: | - **/node_modules - .yarn/cache - key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - uses: actions/download-artifact@v3 with: name: build path: packages - run: yarn install - if: steps.yarn-cache.outputs.cache-hit != 'true' + if: steps.setup-node.outputs.cache-hit != 'true' - name: Create Release Pull Request id: changesets diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 5f295beb06..6977d172e7 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -21,16 +21,10 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v4 + id: setup-node with: node-version: "22.2.0" cache: "yarn" - - uses: actions/cache@v3 - id: yarn-cache - with: - path: | - **/node_modules - .yarn/cache - key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - uses: rharkor/caching-for-turbo@v1.5 - name: Turbo Cache id: turbo-cache @@ -41,7 +35,7 @@ jobs: restore-keys: | turbo-${{ runner.os }}- - run: yarn install - if: steps.yarn-cache.outputs.cache-hit != 'true' + if: steps.setup-node.outputs.cache-hit != 'true' - run: yarn run ci - uses: actions/upload-artifact@v3 with: From cfce4abfd3a0112963e98396bd21080a31d73769 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 24 Sep 2024 14:13:39 -0300 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=91=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 3 +-- .github/workflows/ci-pr.yml | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 436150eb81..722fc7d72b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -25,7 +25,7 @@ jobs: cache: "yarn" - uses: rharkor/caching-for-turbo@v1.5 - run: yarn install - if: steps.setup-node.outputs.cache-hit != 'true' + - run: yarn run ci - run: yarn run docs - uses: actions/upload-artifact@v3 @@ -71,7 +71,6 @@ jobs: name: build path: packages - run: yarn install - if: steps.setup-node.outputs.cache-hit != 'true' - name: Create Release Pull Request id: changesets diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 6977d172e7..80225eb074 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -35,7 +35,6 @@ jobs: restore-keys: | turbo-${{ runner.os }}- - run: yarn install - if: steps.setup-node.outputs.cache-hit != 'true' - run: yarn run ci - uses: actions/upload-artifact@v3 with: From 8fb6b940d1abb283dfac8e85f097890845c20dca Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 24 Sep 2024 19:16:15 -0300 Subject: [PATCH 4/6] asd --- .github/workflows/ci-pr.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 80225eb074..b220c3e9b6 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -26,14 +26,6 @@ jobs: node-version: "22.2.0" cache: "yarn" - uses: rharkor/caching-for-turbo@v1.5 - - name: Turbo Cache - id: turbo-cache - uses: actions/cache@v3 - with: - path: .turbo - key: turbo-${{ runner.os }}-${{ github.job }} - restore-keys: | - turbo-${{ runner.os }}- - run: yarn install - run: yarn run ci - uses: actions/upload-artifact@v3 From d783b44ae10a05461e7c522dc0a97028ac9af41f Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 24 Sep 2024 19:25:30 -0300 Subject: [PATCH 5/6] asd --- package.json | 2 +- yarn.lock | 60 ++++++++++++++++++++++++++-------------------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index 22208d18c1..1b8e78e695 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "husky": "~9.0.11", "hygen": "~6.1.5", "pinst": "~3.0.0", - "turbo": "~2.1.2", + "turbo": "~2.0.11", "update-readme": "workspace:~", "webpack": "~5.78.0" }, diff --git a/yarn.lock b/yarn.lock index 9f66f3568b..b8a1d2f786 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4536,7 +4536,7 @@ __metadata: husky: "npm:~9.0.11" hygen: "npm:~6.1.5" pinst: "npm:~3.0.0" - turbo: "npm:~2.1.2" + turbo: "npm:~2.0.11" update-readme: "workspace:~" webpack: "npm:~5.78.0" languageName: unknown @@ -21269,58 +21269,58 @@ __metadata: languageName: node linkType: hard -"turbo-darwin-64@npm:2.1.2": - version: 2.1.2 - resolution: "turbo-darwin-64@npm:2.1.2" +"turbo-darwin-64@npm:2.0.14": + version: 2.0.14 + resolution: "turbo-darwin-64@npm:2.0.14" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"turbo-darwin-arm64@npm:2.1.2": - version: 2.1.2 - resolution: "turbo-darwin-arm64@npm:2.1.2" +"turbo-darwin-arm64@npm:2.0.14": + version: 2.0.14 + resolution: "turbo-darwin-arm64@npm:2.0.14" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"turbo-linux-64@npm:2.1.2": - version: 2.1.2 - resolution: "turbo-linux-64@npm:2.1.2" +"turbo-linux-64@npm:2.0.14": + version: 2.0.14 + resolution: "turbo-linux-64@npm:2.0.14" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"turbo-linux-arm64@npm:2.1.2": - version: 2.1.2 - resolution: "turbo-linux-arm64@npm:2.1.2" +"turbo-linux-arm64@npm:2.0.14": + version: 2.0.14 + resolution: "turbo-linux-arm64@npm:2.0.14" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"turbo-windows-64@npm:2.1.2": - version: 2.1.2 - resolution: "turbo-windows-64@npm:2.1.2" +"turbo-windows-64@npm:2.0.14": + version: 2.0.14 + resolution: "turbo-windows-64@npm:2.0.14" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"turbo-windows-arm64@npm:2.1.2": - version: 2.1.2 - resolution: "turbo-windows-arm64@npm:2.1.2" +"turbo-windows-arm64@npm:2.0.14": + version: 2.0.14 + resolution: "turbo-windows-arm64@npm:2.0.14" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"turbo@npm:~2.1.2": - version: 2.1.2 - resolution: "turbo@npm:2.1.2" - dependencies: - turbo-darwin-64: "npm:2.1.2" - turbo-darwin-arm64: "npm:2.1.2" - turbo-linux-64: "npm:2.1.2" - turbo-linux-arm64: "npm:2.1.2" - turbo-windows-64: "npm:2.1.2" - turbo-windows-arm64: "npm:2.1.2" +"turbo@npm:~2.0.11": + version: 2.0.14 + resolution: "turbo@npm:2.0.14" + dependencies: + turbo-darwin-64: "npm:2.0.14" + turbo-darwin-arm64: "npm:2.0.14" + turbo-linux-64: "npm:2.0.14" + turbo-linux-arm64: "npm:2.0.14" + turbo-windows-64: "npm:2.0.14" + turbo-windows-arm64: "npm:2.0.14" dependenciesMeta: turbo-darwin-64: optional: true @@ -21336,7 +21336,7 @@ __metadata: optional: true bin: turbo: bin/turbo - checksum: 10/8dea62fa29ff9ca6fc56b19c1558d2b2bf628e71de109bcd82374e2d745d2f825559c54f9c56d60449f4ddbb2b2d5e2d064a9d814474a7b72e058d6236f85703 + checksum: 10/8702de17bb7a05c9feed56eef76acdde5e2161a72647c0bf22b602e0e5004e4908bca7f58aa727b386af0869e516d424e363d6fe97dd562d297b128634a123e0 languageName: node linkType: hard From f9a657ccdf0d8d91f497536d52da096b41bb318c Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Fri, 27 Sep 2024 18:44:24 -0300 Subject: [PATCH 6/6] .. --- yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index b8a1d2f786..150f39fe97 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4959,7 +4959,7 @@ __metadata: lint-all: "workspace:~" prettier: "npm:~2.8.7" peerDependencies: - prettier: ~2.7.1 + prettier: "*" languageName: unknown linkType: soft