Skip to content

Commit 24438ff

Browse files
authored
Replace (p)npx with pnpm in publishing and workflow scripts (#33321)
1 parent ec31dfb commit 24438ff

17 files changed

+50
-49
lines changed

.github/workflows/build_all.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ jobs:
8181
8282
- name: Build bundle
8383
run: |
84-
npx devextreme-bundler-init custom-bundle
85-
npx devextreme-bundler custom-bundle
84+
npx --no-install devextreme-bundler-init custom-bundle
85+
npx --no-install devextreme-bundler custom-bundle

.github/workflows/default_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: Run targets
5757
run: >
58-
pnpx nx run-many
58+
pnpm exec nx run-many
5959
-t test
6060
--exclude
6161
devextreme

.github/workflows/demos_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868

6969
- name: Run unit tests
7070
working-directory: apps/demos
71-
run: pnpx nx test
71+
run: pnpm exec nx test

.github/workflows/demos_visual_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
shell: bash
7373
run: |
7474
node ./tools/scripts/performance_log.js &
75-
pnpx nx build devextreme
75+
pnpm exec nx build devextreme
7676
7777
testcafe:
7878
needs: [check-should-run, build]
@@ -128,7 +128,7 @@ jobs:
128128
run: pnpm install
129129

130130
- name: DevExtreme - Build
131-
run: pnpx nx build devextreme
131+
run: pnpm exec nx build devextreme
132132

133133
- name: Run Web Server
134134
run: |
@@ -155,7 +155,7 @@ jobs:
155155
CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally
156156
run: |
157157
node ../../tools/scripts/performance_log.js &
158-
pnpx nx test-testcafe
158+
pnpm exec nx test-testcafe
159159
160160
- name: Show accessibility warnings
161161
if: matrix.STRATEGY == 'accessibility'

.github/workflows/demos_visual_tests_frameworks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150

151151
- name: Prepare bundles
152152
working-directory: apps/demos
153-
run: pnpx nx prepare-bundles
153+
run: pnpm exec nx prepare-bundles
154154

155155
- name: Demos - Run tsc
156156
working-directory: apps/demos
@@ -262,7 +262,7 @@ jobs:
262262
matrix:
263263
include:
264264
- name: Lint code base (excluding demos)
265-
command: pnpx nx lint-non-demos
265+
command: pnpm exec nx lint-non-demos
266266
# NOTE: skipped due to enormous number of errors
267267
# - name: Lint demos (1/4)
268268
# command: CONSTEL=1/4 npm run lint-demos
@@ -494,7 +494,7 @@ jobs:
494494

495495
- name: Update bundles config
496496
working-directory: apps/demos
497-
run: pnpx gulp update-config
497+
run: pnpm exec gulp update-config
498498

499499
- name: Create bundles dir
500500
run: mkdir -p apps/demos/bundles
@@ -529,7 +529,7 @@ jobs:
529529
CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally
530530
run: |
531531
node ../../tools/scripts/performance_log.js &
532-
pnpx nx test-testcafe
532+
pnpm exec nx test-testcafe
533533
534534
- name: Sanitize job name
535535
if: ${{ failure() }}

.github/workflows/lint.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
- name: Compile renovation
5555
working-directory: ./packages/devextreme
5656
run: |
57-
pnpx nx compile:r
57+
pnpm exec nx compile:r
5858
# Remove package install after upgrade to TypeScript >= 4.6
5959

6060
- name: Lint renovation
6161
working-directory: ./packages/devextreme
62-
run: pnpx nx lint-renovation
62+
run: pnpm exec nx lint-renovation
6363

6464
TS:
6565
runs-on: devextreme-shr2
@@ -98,25 +98,25 @@ jobs:
9898

9999
- name: Build
100100
working-directory: ./packages/devextreme
101-
run: pnpx nx build
101+
run: pnpm exec nx build
102102

103103
- name: Lint TS
104104
working-directory: ./packages/devextreme
105105
env:
106106
DEBUG: eslint:cli-engine
107-
run: pnpx nx lint-ts
107+
run: pnpm exec nx lint-ts
108108

109109
- name: Lint .d.ts
110110
working-directory: ./packages/devextreme
111111
env:
112112
DEBUG: eslint:cli-engine
113-
run: pnpx nx lint-dts
113+
run: pnpm exec nx lint-dts
114114

115115
- name: Lint Testcafe tests
116116
working-directory: ./e2e/testcafe-devextreme
117117
env:
118118
DEBUG: eslint:cli-engine
119-
run: pnpx nx lint
119+
run: pnpm exec nx lint
120120

121121
JS:
122122
runs-on: devextreme-shr2
@@ -155,13 +155,13 @@ jobs:
155155

156156
- name: Build
157157
working-directory: ./packages/devextreme
158-
run: pnpx nx build
158+
run: pnpm exec nx build
159159

160160
- name: Lint JS
161161
working-directory: ./packages/devextreme
162162
env:
163163
DEBUG: eslint:cli-engine
164-
run: pnpx nx lint-js
164+
run: pnpm exec nx lint-js
165165

166166
texts:
167167
runs-on: devextreme-shr2
@@ -200,7 +200,7 @@ jobs:
200200

201201
- name: Check texts
202202
working-directory: ./packages/devextreme
203-
run: pnpx nx lint-texts
203+
run: pnpm exec nx lint-texts
204204

205205
CSS:
206206
runs-on: devextreme-shr2
@@ -239,7 +239,7 @@ jobs:
239239

240240
- name: Lint CSS
241241
working-directory: ./packages/devextreme-scss
242-
run: pnpx nx lint
242+
run: pnpm exec nx lint
243243

244244
component_exports:
245245
runs-on: devextreme-shr2
@@ -327,7 +327,7 @@ jobs:
327327
run: pnpm install --frozen-lockfile
328328

329329
- name: Lint wrappers
330-
run: pnpx nx run-many -t lint -p devextreme-angular devextreme-react devextreme-vue
330+
run: pnpm exec nx run-many -t lint -p devextreme-angular devextreme-react devextreme-vue
331331

332332
notify:
333333
runs-on: devextreme-shr2

.github/workflows/packages_publishing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
cp reportGithub.json ./artifacts/deps-scanner/
9494
9595
- name: Build artifacts package
96-
run: npx ts-node tools/scripts/make-artifacts-package
96+
run: pnpm run make-artifacts-package
9797

9898
- uses: actions/upload-artifact@v4
9999
with:
@@ -158,7 +158,7 @@ jobs:
158158
PACKAGE: ${{ matrix.package }}
159159
run: |
160160
SCOPE=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]');
161-
PACKAGE_DIR=$(npx ts-node tools/scripts/change-package-scope --tgz $PACKAGE.tgz --scope $SCOPE)
161+
PACKAGE_DIR=$(pnpm --silent run change-package-scope --tgz $PACKAGE.tgz --scope $SCOPE)
162162
echo "packageDir=$PACKAGE_DIR" >> "$GITHUB_OUTPUT";
163163
cd $PACKAGE_DIR;
164164
pnpm pkg get name --workspaces=false | tr -d '"' | sed -r 's/(.*)/name=\1/' >> "$GITHUB_OUTPUT";

.github/workflows/playgrounds_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Build
6060
working-directory: ./packages/devextreme
61-
run: pnpx nx build
61+
run: pnpm exec nx build
6262

6363
- name: Zip artifacts
6464
working-directory: ./packages/devextreme
@@ -134,11 +134,11 @@ jobs:
134134

135135
- name: Build
136136
working-directory: ./packages/devextreme-${{ matrix.ARGS.platform }}
137-
run: pnpx nx pack
137+
run: pnpm exec nx pack
138138

139139
- name: Check sources compilation
140140
working-directory: ./apps/${{ matrix.ARGS.platform }}
141-
run: pnpx nx build
141+
run: pnpm exec nx build
142142

143143
# - name: Run test
144144
# if: ${{ matrix.ARGS.platform != 'angular' }}

.github/workflows/qunit_tests-additional-renovation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ jobs:
7575
working-directory: ./packages/devextreme
7676
run: |
7777
node ../../tools/scripts/performance_log.js &
78-
pnpx nx build:dev
79-
pnpx nx build:systemjs
78+
pnpm exec nx build:dev
79+
pnpm exec nx build:systemjs
8080
8181
- name: Zip artifacts
8282
working-directory: ./packages/devextreme

.github/workflows/qunit_tests-renovation.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
env:
1515
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_TOKEN }}
16-
NX_SKIP_NX_CACHE: ${{ (github.event_name != 'pull_request' || contains( github.event.pull_request.labels.*.name, 'skip-cache')) && 'true' || 'false' }}
16+
NX_SKIP_NX_CACHE: true
1717

1818
jobs:
1919
build:
@@ -45,7 +45,6 @@ jobs:
4545
with:
4646
path: |
4747
${{ env.STORE_PATH }}
48-
.nx/cache
4948
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
5049
restore-keys: |
5150
${{ runner.os }}-pnpm-store
@@ -63,7 +62,7 @@ jobs:
6362
BUILD_INPROGRESS_RENOVATION: "true"
6463
run: |
6564
node ../../tools/scripts/performance_log.js &
66-
pnpx nx build:dev
65+
pnpm exec nx build:dev
6766
6867
- name: Zip artifacts
6968
working-directory: ./packages/devextreme

0 commit comments

Comments
 (0)