Skip to content

Commit

Permalink
ci: 👷 add run many build
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Oct 27, 2024
1 parent 11db035 commit b6f8e4e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/release-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit b6f8e4e

Please sign in to comment.