1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00

Improve CI installation commands (#10653)

This commit is contained in:
Álvaro Mondéjar 2024-03-18 22:27:08 +01:00 committed by GitHub
parent d8ce3b4fcd
commit 4056a3e9bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View File

@ -52,7 +52,7 @@ jobs:
npm version --no-commit-hooks --no-git-tag-version \
"${{ needs.release-pr.outputs.new-version }}"
- name: Install dependencies
run: npm i
run: npm i --ignore-scripts --no-audit --no-fund
- name: Update major version in CDN URLs
run: node ./scripts/release/update-cdn-urls.js
- name: Update SVGs count milestone

View File

@ -18,7 +18,7 @@ jobs:
cache: npm
cache-dependency-path: '**/package.json'
- name: Install dependencies
run: npm i
run: npm i --ignore-scripts --no-audit --no-fund
- name: Run linters
run: npm run lint
- name: Build NodeJS package
@ -41,7 +41,7 @@ jobs:
- id: get-version
uses: ./.github/actions/get-version
- name: Install dependencies
run: npm i
run: npm i --ignore-scripts --no-audit --no-fund
- name: Reformat to regular markdown
run: node ./scripts/release/reformat-markdown.js "${{ steps.get-version.outputs.version }}"
- name: Update SDK Typescript definitions

View File

@ -15,7 +15,7 @@ jobs:
cache: npm
cache-dependency-path: '**/package.json'
- name: Install dependencies
run: npm i
run: npm i --ignore-scripts --no-audit --no-fund
- name: Build NodeJS package
run: npm run build
lint:
@ -43,7 +43,7 @@ jobs:
- 'icons/*.svg'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: npm i
run: npm i --ignore-scripts --no-audit --no-fund
- name: Run linter
run: npm run lint --icons='${{ steps.changes.outputs.icons_files }}'
env:
@ -87,6 +87,6 @@ jobs:
cache: npm
cache-dependency-path: '**/package.json'
- name: Install dependencies
run: npm i
run: npm i --ignore-scripts --no-audit --no-fund
- name: Run tests
run: npm run test

View File

@ -5,7 +5,7 @@ RUN apk add --no-cache \
WORKDIR /simple-icons
COPY package.json /simple-icons/
RUN npm install --ignore-scripts
RUN npm install --ignore-scripts --no-audit --no-fund
COPY . .

View File

@ -116,7 +116,7 @@
"jsonlint": "node scripts/lint/jsonlint.js",
"svglint": "svglint --ci $npm_config_icons",
"wslint": "editorconfig-checker",
"prepare": "node -e 'process.exit(!!process.env.CI ? 0 : 1)' || husky",
"prepare": "husky",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean",
"test": "mocha tests --reporter tests/min-reporter.cjs --inline-diffs",