From ba4fa1849ec548838069bd31f53c2b20057a79e1 Mon Sep 17 00:00:00 2001 From: msivasubramaniaan Date: Tue, 11 Jun 2024 11:42:08 +0530 Subject: [PATCH] addressed review comments --- .github/workflows/release.yml | 5 ++--- build/update-readme.ts | 14 -------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 build/update-readme.ts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f8cc5b7..1fa043fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,9 +57,8 @@ jobs: run: yarn test --silent - name: Package run: | - node ./out/build/update-readme.js - vsce package -o vscode-yaml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}-${target}.vsix - sha256sum *-${target}.vsix > vscode-yaml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}-${target}.vsix.sha256 + vsce package -o vscode-yaml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix + sha256sum *.vsix > vscode-yaml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix.sha256 ls -lash *.vsix *.sha256 - name: Upload VSIX Artifacts uses: actions/upload-artifact@v4 diff --git a/build/update-readme.ts b/build/update-readme.ts deleted file mode 100644 index a216b53e..00000000 --- a/build/update-readme.ts +++ /dev/null @@ -1,14 +0,0 @@ -/*----------------------------------------------------------------------------------------------- - * Copyright (c) Red Hat, Inc. All rights reserved. - * Licensed under the MIT License. See LICENSE file in the project root for license information. - *-----------------------------------------------------------------------------------------------*/ - -import { readFileSync, writeFileSync } from 'fs-extra'; - -const readme = readFileSync('./README.md'); - -const lines = `${readme}`.split('\n'); - -const index = lines.findIndex((line) => line.includes('## Overview')); -lines.splice(0, index + 1); -writeFileSync('./README.md', lines.join('\n'));