Skip to content

Commit

Permalink
chore(terra-draw): use npm ci rather than npm install for ci actions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner authored Jan 19, 2025
1 parent cdcb3aa commit eff7dd0
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 63 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
node-version: "22.x"
- name: Install Parent Folder
run: npm install
run: npm ci
- name: Run linting
run: npm run lint

Expand All @@ -32,7 +32,7 @@ jobs:
with:
node-version: "22.x"
- name: Install Parent Folder
run: npm install
run: npm ci
- name: Run unused code checking
run: npm run unused

Expand All @@ -45,7 +45,7 @@ jobs:
with:
node-version: "22.x"
- name: Install Parent Folder
run: npm install
run: npm ci
- name: Ensure no package-lock.json changes
run: git diff --exit-code
- name: Build terra-draw
Expand All @@ -72,7 +72,7 @@ jobs:
with:
node-version: "22.x"
- name: Install Parent Folder
run: npm install
run: npm ci
- name: Build terra-draw
run: cd packages/terra-draw && npm run build
- name: Test
Expand All @@ -89,7 +89,7 @@ jobs:
with:
node-version: "22.x"
- name: Install parent directory
run: npm install
run: npm ci
- name: Build terra-draw
run: cd packages/terra-draw && npm run build
- name: Build terra-draw-leaflet-adapter
Expand All @@ -107,7 +107,7 @@ jobs:
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Install e2e test
working-directory: ./packages/e2e
run: npm install
run: npm ci --ignore-scripts
- run: npx playwright install --with-deps
working-directory: ./packages/e2e
if: steps.playwright-cache.outputs.cache-hit != 'true'
Expand Down
78 changes: 26 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"devDependencies": {
"@commitlint/cli": "17.1.2",
"@commitlint/config-conventional": "17.1.0",
"@eslint/json": "^0.9.0",
"@eslint/markdown": "^6.2.1",
"@eslint/json": "0.9.0",
"@eslint/markdown": "6.2.1",
"@swc/jest": "0.2.36",
"@types/geojson": "7946.0.8",
"@types/jest": "29.5.12",
Expand All @@ -38,12 +38,12 @@
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.2.1",
"husky": "7.0.0",
"husky": "7.0.4",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"knip": "^5.30.2",
"knip": "5.30.2",
"microbundle": "0.15.0",
"serve": "^14.2.4",
"serve": "14.2.4",
"ts-jest": "29.1.2",
"ts-loader": "9.5.1",
"tsx": "4.7.2",
Expand Down

0 comments on commit eff7dd0

Please sign in to comment.