Skip to content

Commit 86ebd1e

Browse files
alexslavrsjbur
authored andcommitted
Replace (p)npx with pnpm in publishing and workflow scripts (DevExpress#33212)
1 parent e40f0b0 commit 86ebd1e

7 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/build_all.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,5 @@ jobs:
109109
- name: Build bundle
110110
working-directory: ./e2e/devextreme-bundler
111111
run: |
112-
npx devextreme-bundler-init custom-bundle
113-
npx devextreme-bundler custom-bundle
112+
pnpm exec devextreme-bundler-init custom-bundle
113+
pnpm exec devextreme-bundler custom-bundle

.github/workflows/packages_publishing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
pnpm nx build sbom;
9393
9494
- name: Build artifacts package
95-
run: npx ts-node tools/scripts/make-artifacts-package
95+
run: pnpm run make-artifacts-package
9696

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

.github/workflows/renovation.yml

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

5050
- name: Build localization
5151
working-directory: ./packages/devextreme
52-
run: pnpx gulp localization
52+
run: pnpm exec gulp localization
5353

5454
- name: Jest tests
5555
run: pnpm exec nx test-jest devextreme

.github/workflows/themebuilder_tests.yml

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

5353
- name: Build etalon bundles
5454
working-directory: ./packages/devextreme-scss
55-
run: pnpx gulp style-compiler-themes-ci
55+
run: pnpm exec gulp style-compiler-themes-ci
5656

5757
- name: Build
5858
working-directory: ./packages/devextreme-themebuilder
@@ -64,11 +64,11 @@ jobs:
6464

6565
- name: Check styles for duplicate rules (generic)
6666
working-directory: ./packages/devextreme-scss
67-
run: pnpx stylelint --config tests/bundles-stylelint-config.json "../devextreme/artifacts/**/dx.light.css"
67+
run: pnpm exec stylelint --config tests/bundles-stylelint-config.json "../devextreme/artifacts/**/dx.light.css"
6868

6969
- name: Check styles for duplicate rules (material)
7070
working-directory: ./packages/devextreme-scss
71-
run: pnpx stylelint --config tests/bundles-stylelint-config.json "../devextreme/artifacts/**/dx.material.blue.light.css"
71+
run: pnpm exec stylelint --config tests/bundles-stylelint-config.json "../devextreme/artifacts/**/dx.material.blue.light.css"
7272

7373
notify:
7474
runs-on: devextreme-shr2

.github/workflows/visual-tests-demos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ jobs:
827827

828828
- name: Update bundles config
829829
working-directory: apps/demos
830-
run: pnpx gulp update-config
830+
run: pnpm exec gulp update-config
831831

832832
- name: Create bundles dir
833833
run: mkdir -p apps/demos/bundles
@@ -962,7 +962,7 @@ jobs:
962962

963963
- name: Update bundles config
964964
working-directory: apps/demos
965-
run: pnpx gulp update-config
965+
run: pnpm exec gulp update-config
966966

967967
- name: Create bundles dir
968968
run: mkdir -p apps/demos/bundles

.github/workflows/wrapper_tests.yml

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

135135
- name: Download Browser
136136
if: matrix.framework == 'angular'
137-
run: pnpx puppeteer browsers install chrome@130.0.6723.69
137+
run: pnpm --filter devextreme-angular exec puppeteer browsers install chrome@130.0.6723.69
138138

139139
- name: Test ${{ matrix.framework }}
140140
env:

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"regenerate-all": "nx run-many -t regenerate",
1717
"lint-staged": "lint-staged",
1818
"prepare": "husky install",
19+
"change-package-scope": "ts-node tools/scripts/change-package-scope.ts",
20+
"make-artifacts-package": "ts-node tools/scripts/make-artifacts-package.ts",
1921
"all:set-timestamp-version": "ts-node tools/scripts/set-timestamp-version.ts",
2022
"all:update-version": "ts-node tools/scripts/update-version.ts",
2123
"all:build": "ts-node tools/scripts/build-all.ts",

0 commit comments

Comments
 (0)