From 05f63b304ea475322e0e5a9f6b8969a509c63164 Mon Sep 17 00:00:00 2001 From: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:20:11 +0530 Subject: [PATCH] fix: release action for vscode Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com> --- .github/workflows/release.yml | 21 ++++++++++----------- package.json | 1 + webviews/components/UtgDocs.svelte | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4cd532a..c940a45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,8 +15,8 @@ jobs: tag: ${{ steps.setup-tag.outputs.tag }} version: ${{ steps.setup-tag.outputs.version }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: ${{ steps.node_version.outputs.nvmrc }} @@ -34,35 +34,34 @@ jobs: - name: Setup package path id: setup - run: echo "::set-output name=packageName::$(node -e "console.log(require('./package.json').name + '-' + require('./package.json').version + '.vsix')")" + run: echo "packageName=$(node -e \"console.log(require('./package.json').name + '-' + require('./package.json').version + '.vsix')\")" >> $GITHUB_OUTPUT - name: Package env: VSIX_PACKAGE_PATH: ${{ steps.setup.outputs.packageName }} run: vsce package - - - uses: actions/upload-artifact@v2 + + - uses: actions/upload-artifact@v3 with: name: ${{ steps.setup.outputs.packageName }} path: ${{ steps.setup.outputs.packageName }} - + - name: Setup tag id: setup-tag run: | version=$(node -p "require('./package.json').version") majorVersion=$(echo $version | cut -d '.' -f 1) - echo "tag: release/$majorVersion" - echo "::set-output name=tag::release/$majorVersion" - echo "::set-output name=version::$version" + echo "tag=release/$majorVersion" >> $GITHUB_OUTPUT + echo "version=$version" >> $GITHUB_OUTPUT shell: bash - + publishGH: name: Publish to GitHub releases runs-on: ubuntu-latest needs: package if: startsWith(needs.package.outputs.tag, 'release/') && needs.package.outputs.tag != github.ref steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: ${{ needs.package.outputs.packageName }} diff --git a/package.json b/package.json index ea96bcb..e7e8540 100644 --- a/package.json +++ b/package.json @@ -172,6 +172,7 @@ "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "rollup": "rollup -c -w --bundleConfigAsCjs", + "rollupci": "rollup -c --bundleConfigAsCjs", "watch": "tsc -watch -p ./", "debug": "tsc -watch -p ./", "pretest": "npm run compile && npm run lint", diff --git a/webviews/components/UtgDocs.svelte b/webviews/components/UtgDocs.svelte index 7d4685b..8332c43 100644 --- a/webviews/components/UtgDocs.svelte +++ b/webviews/components/UtgDocs.svelte @@ -1,9 +1,9 @@