Skip to content

Commit ef49cbc

Browse files
authored
Security deps lock: npm i -> ci (#679)
1 parent 770d749 commit ef49cbc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/actions/dotnet-test-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
path: ~/.nuget/packages
2020

2121
- shell: bash
22-
run: cd net/Sample && npm i
22+
run: cd net/Sample && npm ci
2323

2424
- shell: bash
2525
run: dotnet build -c Debug net/DevExtreme.AspNet.Data.sln

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
- run: curl -L https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.3.5/ec-linux-amd64.tar.gz | tar xzf - -C /opt
3333
- run: /opt/bin/ec-linux-amd64 -v
3434

35-
- run: npm i eslint
35+
- name: Install ESLint
36+
run: |
37+
ESLINT_VERSION=$(node -p "require('./package-lock.json').packages['node_modules/eslint'].version")
38+
npm i --no-save eslint@$ESLINT_VERSION
3639
- run: npm run eslint
3740

3841
test-js:
@@ -50,9 +53,9 @@ jobs:
5053

5154
- run: node build/make-nojquery
5255

53-
- run: npm i --omit=peer
56+
- run: npm ci --omit=peer
5457
- run: npm i --no-save "devextreme@${{ matrix.version }}"
55-
- name: Instal devextreme-dist
58+
- name: Install devextreme-dist
5659
if: ${{ matrix.version == '>=23.1.0' }}
5760
run: npm i --no-save "devextreme-dist@${{ matrix.version }}"
5861
- run: npm run dts

0 commit comments

Comments
 (0)