From b6f8e4eab3875e5c76b4046e523ff8f16b7358b1 Mon Sep 17 00:00:00 2001 From: Davide Segullo Date: Sun, 27 Oct 2024 22:31:28 +0100 Subject: [PATCH] ci: :construction_worker: add run many build --- .github/workflows/release-preview.yml | 20 ++++++++++++-------- .github/workflows/release-production.yml | 20 ++++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml index f2c7e1e..6552383 100644 --- a/.github/workflows/release-preview.yml +++ b/.github/workflows/release-preview.yml @@ -56,23 +56,27 @@ jobs: - name: Set SHAs for Nx workspace uses: nrwl/nx-set-shas@v4 - # Step 7: Run the build for the affected changes - - name: Run Nx lint, test and build - run: pnpx nx affected -t lint test build --exclude nextjs,vue3 + # Step 7: Run lint and test for the affected changes + - name: Run Nx lint and test + run: pnpx nx affected -t lint test --exclude nextjs,vue3 - # Step 8: Set github authour + # Step 8: Run the build for the affected changes + - name: Run build + run: pnpm build + + # Step 9: Set github authour - name: Setup git user to "🤖 nabla bot" run: git config user.email "-" && git config user.name "🤖 nabla bot" - # Step 9: Run the release + # Step 10: Run the release - name: Run Nx release version run: pnpm release -d false - # Step 10: Run the build for the affected changes + # Step 11: Run the build for the affected changes - name: Run build run: pnpm build - # Step 11: Run publish + # Step 12: Run publish - name: Publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -82,7 +86,7 @@ jobs: # which is set up by `setup-node` action. run: npx nx release publish --verbose --tag $RELEASE_TAG - # Step 12: Upload artifacts + # Step 13: Upload artifacts - name: Upload artifacts uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index 7349bd6..f3dde29 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -57,23 +57,27 @@ jobs: - name: Set SHAs for Nx workspace uses: nrwl/nx-set-shas@v4 - # Step 7: Run the build for the affected changes - - name: Run Nx lint, test and build - run: pnpx nx affected -t lint test build --exclude nextjs,vue3 + # Step 7: Run lint and test for the affected changes + - name: Run Nx lint and test + run: pnpx nx affected -t lint test --exclude nextjs,vue3 - # Step 8: Set github authour + # Step 8: Run the build for the affected changes + - name: Run build + run: pnpm build + + # Step 9: Set github authour - name: Setup git user to "🤖 nabla bot" run: git config user.email "-" && git config user.name "🤖 nabla bot" - # Step 9: Run the release + # Step 10: Run the release - name: Run Nx release version run: pnpm release -d false - # Step 10: Run the build for the affected changes + # Step 11: Run the build for the affected changes - name: Run build run: pnpm build - # Step 11: Run publish + # Step 12: Run publish - name: Publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -83,7 +87,7 @@ jobs: # which is set up by `setup-node` action. run: pnpx nx release publish --verbose - # Step 12: Upload artifacts + # Step 13: Upload artifacts - name: Upload artifacts uses: actions/upload-artifact@v4 with: