Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run postbuild in ci #3044

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
run: node ./scripts/rebase-pr.js
- name: Run build, lint, test, and posttest for npm packages
run: |
npx nx affected --target build lint test posttest --configuration ci --parallel 1 --exclude '*,!tag:npm'
npx nx affected --target build postbuild lint test posttest --configuration ci --parallel 1 --exclude '*,!tag:npm'
env:
NX_VERBOSE_LOGGING: ${{ runner.debug || '' }}
- name: Run lint, test, and posttest for non-npm packages
Expand Down
5 changes: 5 additions & 0 deletions libs/components/manifest/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"executor": "nx:run-commands",
"options": {
"command": "ts-node --project ./scripts/tsconfig.json ./scripts/postbuild-manifest.ts"
},
"configurations": {
"ci": {
"command": "echo '🏃‍➡️ Skipping postbuild script for CI.'"
}
}
},
"lint": {
Expand Down
9 changes: 9 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@
],
"cache": true
},
"postbuild": {
"dependsOn": [
{
"target": "build"
}
],
"cache": true,
"outputs": ["{workspaceRoot}/dist/{projectRoot}"]
},
"@nx/jest:jest": {
"inputs": ["testInputs", "^buildInputs"],
"cache": true,
Expand Down
Loading