Skip to content

Commit cd7cabe

Browse files
committed
fix: fix wrong value
1 parent f7629ca commit cd7cabe

11 files changed

Lines changed: 87 additions & 12 deletions

File tree

.github/workflows/main.yml

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,66 @@
1+
name: Pull Request Checks
2+
13
on:
24
pull_request:
3-
branches:
4-
- master
5+
push:
6+
workflow_dispatch:
57

68
jobs:
9+
pr-checks:
10+
runs-on: ubuntu-latest
11+
name: PR Validation & Testing
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '20'
23+
cache: 'yarn'
24+
25+
- name: Install dependencies
26+
run: yarn install --frozen-lockfile
27+
28+
- name: Derive appropriate SHAs for base and head for nx affected commands
29+
uses: nrwl/nx-set-shas@v4
30+
31+
- name: Run lint on affected projects
32+
run: npx nx affected --target=lint --parallel=3
33+
continue-on-error: false
34+
35+
- name: Run typecheck on affected projects
36+
run: npx nx affected --target=typecheck --parallel=3
37+
continue-on-error: false
38+
39+
- name: Run tests on affected projects
40+
run: npx nx affected --target=test --parallel=3 --coverage
41+
continue-on-error: false
42+
43+
- name: Run build on affected projects
44+
run: npx nx affected --target=build --parallel=3
45+
continue-on-error: false
46+
47+
- name: Run Nx release dry-run
48+
id: nx-release-dry-run
49+
run: |
50+
echo "Running Nx release in dry-run mode..."
51+
npx nx release --dry-run --verbose 2>&1 | tee release-output.txt
52+
EXIT_CODE=${PIPESTATUS[0]}
53+
54+
if [ $EXIT_CODE -ne 0 ]; then
55+
echo "L Nx release dry-run FAILED with exit code $EXIT_CODE"
56+
echo "release_status=failed" >> $GITHUB_OUTPUT
57+
exit $EXIT_CODE
58+
else
59+
echo " Nx release dry-run SUCCEEDED"
60+
echo "release_status=success" >> $GITHUB_OUTPUT
61+
fi
62+
continue-on-error: false
63+
764
github-action-show-version:
865
runs-on: ubuntu-latest
966
name: Next version is
@@ -12,4 +69,4 @@ jobs:
1269
uses: rvsia/github-action-show-version@v1.9alpha
1370
id: comment
1471
with:
15-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
72+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/release-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Pull Request Checks
22

33
on:
44
pull_request:
5+
branches:
6+
- '**'
57
push:
68
workflow_dispatch:
79

packages/ant-component-mapper/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@
4848
"typecheck": {
4949
"executor": "@nx/js:tsc",
5050
"options": {
51+
"main": "packages/ant-component-mapper/src/index.js",
5152
"tsConfig": "packages/ant-component-mapper/tsconfig.json",
52-
"noEmit": true
53+
"outputPath": "packages/ant-component-mapper/dist"
5354
},
55+
"outputs": ["{options.outputPath}"],
5456
"cache": true
5557
},
5658
"start": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.ddorg__ant-component-mapper_wizard-step {
22
margin-top: 32px;
3-
min-height: 251px;
3+
min-height: 250px;
44
}

packages/blueprint-component-mapper/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@
4949
"typecheck": {
5050
"executor": "@nx/js:tsc",
5151
"options": {
52+
"main": "packages/blueprint-component-mapper/src/index.js",
5253
"tsConfig": "packages/blueprint-component-mapper/tsconfig.json",
53-
"noEmit": true
54+
"outputPath": "packages/blueprint-component-mapper/dist"
5455
},
56+
"outputs": ["{options.outputPath}"],
5557
"cache": true
5658
},
5759
"start": {

packages/carbon-component-mapper/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@
4949
"typecheck": {
5050
"executor": "@nx/js:tsc",
5151
"options": {
52+
"main": "packages/carbon-component-mapper/src/index.js",
5253
"tsConfig": "packages/carbon-component-mapper/tsconfig.json",
53-
"noEmit": true
54+
"outputPath": "packages/carbon-component-mapper/dist"
5455
},
56+
"outputs": ["{options.outputPath}"],
5557
"cache": true
5658
},
5759
"start": {

packages/common/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@
4848
"typecheck": {
4949
"executor": "@nx/js:tsc",
5050
"options": {
51+
"main": "packages/common/src/index.js",
5152
"tsConfig": "packages/common/tsconfig.json",
52-
"noEmit": true
53+
"outputPath": "packages/common/dist"
5354
},
55+
"outputs": ["{options.outputPath}"],
5456
"cache": true
5557
}
5658
}

packages/mui-component-mapper/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@
4949
"typecheck": {
5050
"executor": "@nx/js:tsc",
5151
"options": {
52+
"main": "packages/mui-component-mapper/src/index.js",
5253
"tsConfig": "packages/mui-component-mapper/tsconfig.json",
53-
"noEmit": true
54+
"outputPath": "packages/mui-component-mapper/dist"
5455
},
56+
"outputs": ["{options.outputPath}"],
5557
"cache": true
5658
},
5759
"start": {

packages/pf4-component-mapper/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@
4949
"typecheck": {
5050
"executor": "@nx/js:tsc",
5151
"options": {
52+
"main": "packages/pf4-component-mapper/src/index.js",
5253
"tsConfig": "packages/pf4-component-mapper/tsconfig.json",
53-
"noEmit": true
54+
"outputPath": "packages/pf4-component-mapper/dist"
5455
},
56+
"outputs": ["{options.outputPath}"],
5557
"cache": true
5658
},
5759
"start": {

packages/react-form-renderer/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@
4848
"typecheck": {
4949
"executor": "@nx/js:tsc",
5050
"options": {
51+
"main": "packages/react-form-renderer/src/index.js",
5152
"tsConfig": "packages/react-form-renderer/tsconfig.json",
52-
"noEmit": true
53+
"outputPath": "packages/react-form-renderer/dist"
5354
},
55+
"outputs": ["{options.outputPath}"],
5456
"cache": true
5557
},
5658
"start": {

0 commit comments

Comments
 (0)