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:
parent
d8ce3b4fcd
commit
4056a3e9bb
2
.github/workflows/create-release.yml
vendored
2
.github/workflows/create-release.yml
vendored
@ -52,7 +52,7 @@ jobs:
|
|||||||
npm version --no-commit-hooks --no-git-tag-version \
|
npm version --no-commit-hooks --no-git-tag-version \
|
||||||
"${{ needs.release-pr.outputs.new-version }}"
|
"${{ needs.release-pr.outputs.new-version }}"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: npm i --ignore-scripts --no-audit --no-fund
|
||||||
- name: Update major version in CDN URLs
|
- name: Update major version in CDN URLs
|
||||||
run: node ./scripts/release/update-cdn-urls.js
|
run: node ./scripts/release/update-cdn-urls.js
|
||||||
- name: Update SVGs count milestone
|
- name: Update SVGs count milestone
|
||||||
|
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: '**/package.json'
|
cache-dependency-path: '**/package.json'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: npm i --ignore-scripts --no-audit --no-fund
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Build NodeJS package
|
- name: Build NodeJS package
|
||||||
@ -41,7 +41,7 @@ jobs:
|
|||||||
- id: get-version
|
- id: get-version
|
||||||
uses: ./.github/actions/get-version
|
uses: ./.github/actions/get-version
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: npm i --ignore-scripts --no-audit --no-fund
|
||||||
- name: Reformat to regular markdown
|
- name: Reformat to regular markdown
|
||||||
run: node ./scripts/release/reformat-markdown.js "${{ steps.get-version.outputs.version }}"
|
run: node ./scripts/release/reformat-markdown.js "${{ steps.get-version.outputs.version }}"
|
||||||
- name: Update SDK Typescript definitions
|
- name: Update SDK Typescript definitions
|
||||||
|
6
.github/workflows/verify.yml
vendored
6
.github/workflows/verify.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: '**/package.json'
|
cache-dependency-path: '**/package.json'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: npm i --ignore-scripts --no-audit --no-fund
|
||||||
- name: Build NodeJS package
|
- name: Build NodeJS package
|
||||||
run: npm run build
|
run: npm run build
|
||||||
lint:
|
lint:
|
||||||
@ -43,7 +43,7 @@ jobs:
|
|||||||
- 'icons/*.svg'
|
- 'icons/*.svg'
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: npm i --ignore-scripts --no-audit --no-fund
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: npm run lint --icons='${{ steps.changes.outputs.icons_files }}'
|
run: npm run lint --icons='${{ steps.changes.outputs.icons_files }}'
|
||||||
env:
|
env:
|
||||||
@ -87,6 +87,6 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: '**/package.json'
|
cache-dependency-path: '**/package.json'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: npm i --ignore-scripts --no-audit --no-fund
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
@ -5,7 +5,7 @@ RUN apk add --no-cache \
|
|||||||
|
|
||||||
WORKDIR /simple-icons
|
WORKDIR /simple-icons
|
||||||
COPY package.json /simple-icons/
|
COPY package.json /simple-icons/
|
||||||
RUN npm install --ignore-scripts
|
RUN npm install --ignore-scripts --no-audit --no-fund
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
"jsonlint": "node scripts/lint/jsonlint.js",
|
"jsonlint": "node scripts/lint/jsonlint.js",
|
||||||
"svglint": "svglint --ci $npm_config_icons",
|
"svglint": "svglint --ci $npm_config_icons",
|
||||||
"wslint": "editorconfig-checker",
|
"wslint": "editorconfig-checker",
|
||||||
"prepare": "node -e 'process.exit(!!process.env.CI ? 0 : 1)' || husky",
|
"prepare": "husky",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"postpublish": "npm run clean",
|
"postpublish": "npm run clean",
|
||||||
"test": "mocha tests --reporter tests/min-reporter.cjs --inline-diffs",
|
"test": "mocha tests --reporter tests/min-reporter.cjs --inline-diffs",
|
||||||
|
Loading…
Reference in New Issue
Block a user