Skip to content

Commit

Permalink
fix: 💚 better build
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Oct 26, 2024
1 parent 720816e commit feeb819
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ jobs:
- name: Run Nx release version
run: pnpm release -d false

# Step 10: Run publish
# Step 10: Run the build for the affected changes
- name: Run build
run: pnpm build

# Step 11: Run publish
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -78,12 +82,12 @@ jobs:
# which is set up by `setup-node` action.
run: npx nx release publish --verbose --tag $RELEASE_TAG

# Step 11: Upload artifacts
# Step 12: Upload artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: './dist'

# Step 12: Clean up dist directory
# Step 13: Clean up dist directory
- name: Cleanup dist directory
run: rm -rf ./dist # Remove the dist directory to start fresh
10 changes: 7 additions & 3 deletions .github/workflows/release-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ jobs:
- name: Run Nx release version
run: pnpm release -d false

# Step 10: Run publish
# Step 10: Run the build for the affected changes
- name: Run build
run: pnpm build

# Step 11: Run publish
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -76,12 +80,12 @@ jobs:
# which is set up by `setup-node` action.
run: pnpx nx release publish --verbose

# Step 11: Upload artifacts
# Step 12: Upload artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: './dist'

# Step 12: Clean up dist directory
# Step 13: Clean up dist directory
- name: Cleanup dist directory
run: rm -rf ./dist # Remove the dist directory to start fresh
5 changes: 2 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@
"projects": ["*", "!nextjs", "!vue3"],
"projectsRelationship": "independent",
"version": {
"conventionalCommits": true,
"generatorOptions": {
"packageRoot": "dist/packages/{projectName}",
"currentVersionResolver": "git-tag",
"specifierSource": "conventional-commits",
"fallbackCurrentVersionResolver": "disk"
"updateDependents": "auto"
}
},
"changelog": {
Expand Down

0 comments on commit feeb819

Please sign in to comment.