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'));