Skip to content

Commit c4b4480

Browse files
committed
Replace (p)npx with pnpm in publishing and workflow scripts (#33262)
1 parent f80d88c commit c4b4480

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

.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/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/renovation.yml

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

5454
- name: Build localization
5555
working-directory: ./packages/devextreme
56-
run: pnpx gulp localization
56+
run: pnpm exec gulp localization
5757

5858
- name: Jest tests
5959
run: pnpx nx test-jest devextreme

.github/workflows/themebuilder_tests.yml

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

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

5959
- name: Build
6060
working-directory: ./packages/devextreme-themebuilder
@@ -66,11 +66,11 @@ jobs:
6666

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

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

7575
notify:
7676
runs-on: devextreme-shr2

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"regenerate-all": "nx run-many -t regenerate",
2424
"lint-staged": "lint-staged",
2525
"prepare": "husky install",
26+
"change-package-scope": "ts-node tools/scripts/change-package-scope.ts",
27+
"make-artifacts-package": "ts-node tools/scripts/make-artifacts-package.ts",
2628
"all:set-timestamp-version": "ts-node tools/scripts/set-timestamp-version.ts",
2729
"all:update-version": "ts-node tools/scripts/update-version.ts",
2830
"all:build": "ts-node tools/scripts/build-all.ts",

0 commit comments

Comments
 (0)