From 5333d81aae25cd7de4e068f8788fc8e1edbbc463 Mon Sep 17 00:00:00 2001 From: Dominic Burger Date: Tue, 15 Oct 2024 16:32:08 +0200 Subject: [PATCH] Add publish and pull request steps for release --- .github/workflows/release.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58e5620..3a84a73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,7 +68,10 @@ jobs: - name: Pack extension run: npx vsce pack - # todo: publish to marketplace + - name: Publish extension to marketplace + run: npx vsce publish + env: + VSCE_PAT: ${{ secrets.VSCE_PAT }} - name: Update GitHub release assets run: gh release upload ${{ env.VERSION_TAG }} *.vsix --clobber @@ -81,16 +84,13 @@ jobs: - name: Patch package.json version run: npm version patch --git-tag-version false - - name: Print changes - run: git diff - - # - name: Commit, push and create pull request - # run: | - # git config --local user.email "office@geowerkstatt.ch" - # git config --local user.name "GeoWerkstatt-Build" - # git checkout -b $GIT_BRANCH_NAME - # git commit -am "$GIT_COMMIT_MESSAGE" - # git push --set-upstream origin $GIT_BRANCH_NAME - # gh pr create --title "$GIT_COMMIT_MESSAGE" --body "" - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Commit, push and create pull request + run: | + git config --local user.email "office@geowerkstatt.ch" + git config --local user.name "GeoWerkstatt-Build" + git checkout -b $GIT_BRANCH_NAME + git commit -am "$GIT_COMMIT_MESSAGE" + git push --set-upstream origin $GIT_BRANCH_NAME + gh pr create --title "$GIT_COMMIT_MESSAGE" --body "" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}