From 15cc8ea7fa21cad39987a7393715dbc756992205 Mon Sep 17 00:00:00 2001 From: LitoMore Date: Mon, 27 Nov 2023 18:50:10 +0800 Subject: [PATCH] Rename scripts (#9938) --- .github/workflows/publish.yml | 6 +++--- .../release/{strip-theme-links.js => reformat-readme.js} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename scripts/release/{strip-theme-links.js => reformat-readme.js} (94%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 51e5af4e..dcdc82f0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,8 +52,8 @@ jobs: uses: ./.github/actions/get-version - name: Install dependencies run: npm i - - name: Replace CDN theme image links from README - run: node ./scripts/release/strip-theme-links.js "${{ steps.get-version.outputs.version }}" + - name: Reformat README to regular markdown + run: node ./scripts/release/reformat-readme.js "${{ steps.get-version.outputs.version }}" - name: Update SDK Typescript definitions run: node ./scripts/release/update-sdk-ts-defs.js - name: Build NodeJS package @@ -75,7 +75,7 @@ jobs: - id: get-version uses: ./.github/actions/get-version - name: Replace CDN theme image links from README - run: node ./scripts/release/strip-theme-links.js "${{ steps.get-version.outputs.version }}" + run: node ./scripts/release/reformat-readme.js "${{ steps.get-version.outputs.version }}" - name: Configure GIT credentials run: | git config user.name "${GITHUB_ACTOR}" diff --git a/scripts/release/strip-theme-links.js b/scripts/release/reformat-readme.js similarity index 94% rename from scripts/release/strip-theme-links.js rename to scripts/release/reformat-readme.js index ca81e48d..643ecb3f 100644 --- a/scripts/release/strip-theme-links.js +++ b/scripts/release/reformat-readme.js @@ -1,6 +1,6 @@ /** * @fileoverview - * Simple Icons strip theme URL script. + * Reformat README to regular markdown. */ import path from 'node:path';