Skip to content

Commit

Permalink
Fix scripts execution compatibility (#10838)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Apr 21, 2024
1 parent 7b07b44 commit da97f32
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ jobs:
- name: Install dependencies
run: npm i --ignore-scripts --no-audit --no-fund
- name: Update major version in CDN URLs
run: ./scripts/release/update-cdn-urls.js
run: node scripts/release/update-cdn-urls.js
- name: Update SVGs count milestone
run: ./scripts/release/update-svgs-count.js
run: node scripts/release/update-svgs-count.js
- name: Update slugs table
run: ./scripts/release/update-slugs-table.js
run: node scripts/release/update-slugs-table.js
- name: Update SDK Typescript definitions
run: ./scripts/release/update-sdk-ts-defs.js
run: node scripts/release/update-sdk-ts-defs.js
- name: Commit version bump
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
- name: Install dependencies
run: npm i --ignore-scripts --no-audit --no-fund
- name: Reformat to regular markdown
run: ./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
run: ./scripts/release/update-sdk-ts-defs.js
run: node scripts/release/update-sdk-ts-defs.js
- name: Build NodeJS package
run: npm run build
- name: Deploy to NPM
Expand All @@ -70,7 +70,7 @@ jobs:
- id: get-version
uses: ./.github/actions/get-version
- name: Reformat to regular markdown
run: ./scripts/release/reformat-markdown.js "${{ steps.get-version.outputs.version }}"
run: node scripts/release/reformat-markdown.js "${{ steps.get-version.outputs.version }}"
- name: Configure GIT credentials
run: |
git config user.name "simple-icons[bot]"
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@
"xo": "0.58.0"
},
"scripts": {
"build": "./scripts/build/package.js",
"clean": "./scripts/build/clean.js",
"build": "node scripts/build/package.js",
"clean": "node scripts/build/clean.js",
"format": "npm run prettier -- --write && npm run xo:fix",
"xo:fix": "xo --fix",
"prettier": "prettier --cache --ignore-unknown \"**/*.!(js|jsx|mjs|cjs|ts|tsx|mts|cts|svg)\"",
"lint": "npm run ourlint && npm run prettierlint && npm run jslint && npm run jsonlint && npm run svglint && npm run wslint",
"ourlint": "./scripts/lint/ourlint.js",
"ourlint": "node scripts/lint/ourlint.js",
"prettierlint": "npm run prettier -- --check",
"jslint": "xo",
"jsonlint": "./scripts/lint/jsonlint.js",
"jsonlint": "node scripts/lint/jsonlint.js",
"svglint": "svglint --ci --config svglint.config.mjs icons/*.svg",
"wslint": "editorconfig-checker",
"prepare": "husky",
Expand All @@ -125,8 +125,8 @@
"test": "mocha tests --reporter tests/min-reporter.cjs --inline-diffs",
"pretest": "npm run prepublishOnly",
"posttest": "npm run postpublish",
"get-filename": "./scripts/get-filename.js",
"add-icon-data": "./scripts/add-icon-data.js"
"get-filename": "node scripts/get-filename.js",
"add-icon-data": "node scripts/add-icon-data.js"
},
"engines": {
"node": ">=0.12.18"
Expand Down
Empty file modified scripts/add-icon-data.js
100755 → 100644
Empty file.
Empty file modified scripts/build/clean.js
100755 → 100644
Empty file.
Empty file modified scripts/build/package.js
100755 → 100644
Empty file.
Empty file modified scripts/get-filename.js
100755 → 100644
Empty file.
Empty file modified scripts/lint/jsonlint.js
100755 → 100644
Empty file.
Empty file modified scripts/lint/ourlint.js
100755 → 100644
Empty file.
Empty file modified scripts/release/reformat-markdown.js
100755 → 100644
Empty file.
Empty file modified scripts/release/update-cdn-urls.js
100755 → 100644
Empty file.
Empty file modified scripts/release/update-sdk-ts-defs.js
100755 → 100644
Empty file.
Empty file modified scripts/release/update-slugs-table.js
100755 → 100644
Empty file.
Empty file modified scripts/release/update-svgs-count.js
100755 → 100644
Empty file.

0 comments on commit da97f32

Please sign in to comment.