From e3eab580f94ae752cc128ce338fc21b26feff6d3 Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Wed, 31 Dec 2025 13:10:52 -0800 Subject: [PATCH] ci: fix publish workflow --- .github/workflows/publish.yaml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index cab9509..ffc5ca9 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,13 +15,8 @@ jobs: with: node-version: 18.x cache: 'yarn' - - run: yarn install --ignore-engines - - name: Write release version - run: | - VERSION=${GITHUB_REF_NAME#v} - echo Version: $VERSION - echo "VERSION=$VERSION" >> $GITHUB_ENV - - run: 'npm version ${VERSION} --no-git-tag-version' + - name: Yarn install + run: yarn install --ignore-engines - name: Publish to Open VSX Registry uses: HaaLeo/publish-vscode-extension@v2 with: @@ -38,11 +33,9 @@ jobs: - name: Build VSIX run: yarn run vscode:build - name: Upload VSIX to release - uses: actions/upload-artifact@v6 - with: - path: ./spicedb.vsix - name: spicedb.vsix - if-no-files-found: 'error' + run: gh release upload ${{ github.ref_name }} ./spicedb.vsix + env: + GH_TOKEN: ${{ github.token }} - name: 'Notify in Slack if failure' if: '${{ failure() }}' uses: 'slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a' # v2.1.1