diff --git a/.github/workflows/publish-extension.yml b/.github/workflows/publish-extension.yml index 93178e02c..6ddfe5d16 100644 --- a/.github/workflows/publish-extension.yml +++ b/.github/workflows/publish-extension.yml @@ -3,9 +3,8 @@ on: push: branches: - master - create: tags: - - 'extension-*' + - 'extension/*' pull_request: concurrency: @@ -62,22 +61,22 @@ jobs: export EXTENSION_VERSION=$(node -p "require('./package.json').version") echo "Extension version: $EXTENSION_VERSION" - export TAG="extension-$EXTENSION_VERSION" + export TAG="extension/$EXTENSION_VERSION" echo "Tag: $TAG" if git rev-parse "$TAG" >/dev/null 2>&1; then echo "tag already exists"; else git tag -a "$TAG" -m "$TAG" - git push origin "$TAG" + git push origin "$TAG" fi - name: create release - if: success() && startsWith(github.ref, 'refs/tags/extension-') + if: success() && startsWith(github.ref, 'refs/tags/extension/') uses: softprops/action-gh-release@v1 - name: publish - if: success() && startsWith(github.ref, 'refs/tags/extension-') + if: success() && startsWith(github.ref, 'refs/tags/extension/') working-directory: extension run: | npm install -g vsce