Skip to content

Commit 48ed0b5

Browse files
authored
CI: Update and enable deps scanner (DevExpress#28205)
1 parent 915c4b5 commit 48ed0b5

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/packages_publishing.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
- name: Get pnpm store directory
4747
shell: bash
4848
run: |
49-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
49+
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
5050
5151
- uses: actions/cache@v4
5252
name: Setup pnpm cache
5353
with:
5454
path: |
55-
${{ env.STORE_PATH }}
55+
${{ env.PNPM_STORE_PATH }}
5656
.nx/cache
5757
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
5858
restore-keys: |
@@ -72,18 +72,22 @@ jobs:
7272
BUILD_INTERNAL_PACKAGE: true
7373
run: pnpm run all:build
7474

75-
# - name: Clone deps scanner
76-
# uses: actions/checkout@v4
77-
# with:
78-
# repository: DevExpress/npmdeps-scanner
79-
# token: ${{ secrets.NPM_DEPS_SCANNER_PAT }}
80-
# path: deps-scanner
81-
#
82-
# - name: Run deps scanner
83-
# run: |
84-
# ./deps-scanner/exe/npmDepsScanner.exe scan_cache ${{ github.workspace }} reportGithub.json
85-
# mkdir -p ./artifacts/deps-scanner
86-
# cp reportGithub.json ./artifacts/deps-scanner/
75+
- name: Clone deps scanner
76+
uses: actions/checkout@v4
77+
with:
78+
repository: DevExpress/npmdeps-scanner
79+
token: ${{ secrets.NPM_DEPS_SCANNER_PAT }}
80+
path: deps-scanner
81+
82+
- name: Build deps scanner
83+
working-directory: deps-scanner
84+
run: dotnet build npmDepsScanner.csproj /p:Configuration=Release
85+
86+
- name: Run deps scanner
87+
run: |
88+
./deps-scanner/bin/Release/npmDepsScanner.exe scan_cache ${{ github.workspace }} reportGithub.json
89+
mkdir -p ./artifacts/deps-scanner
90+
cp reportGithub.json ./artifacts/deps-scanner/
8791
8892
- name: Build artifacts package
8993
run: npx ts-node tools/scripts/make-artifacts-package
@@ -136,13 +140,13 @@ jobs:
136140
- name: Get pnpm store directory
137141
shell: bash
138142
run: |
139-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
143+
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
140144
141145
- uses: actions/cache@v4
142146
name: Setup pnpm cache
143147
with:
144148
path: |
145-
${{ env.STORE_PATH }}
149+
${{ env.PNPM_STORE_PATH }}
146150
.nx/cache
147151
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
148152
restore-keys: |

0 commit comments

Comments
 (0)