This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
#tags:
|
||||
# - "*"
|
||||
tags:
|
||||
- "*"
|
||||
jobs:
|
||||
build_and_publish:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -28,15 +26,15 @@ jobs:
|
||||
run: npm -g i @vscode/vsce
|
||||
- name: Build Package Files
|
||||
run: npm run package
|
||||
# - name: Update package.json Version
|
||||
# run: npm version ${{ github.ref_name }} --no-git-tag-version
|
||||
# - name: Commit and Push Changes
|
||||
# run: |
|
||||
# git config user.name "${{ vars.USERNAME_GIT }}"
|
||||
# git config user.email "${{ vars.EMAIL_GIT }}"
|
||||
# git add package.json
|
||||
# git commit -m "Update version to ${{ github.ref_name }}"
|
||||
# git push origin HEAD:main
|
||||
- name: Update package.json Version
|
||||
run: npm version ${{ github.ref_name }} --no-git-tag-version
|
||||
- name: Commit and Push Changes
|
||||
run: |
|
||||
git config user.name "${{ vars.USERNAME_GIT }}"
|
||||
git config user.email "${{ vars.EMAIL_GIT }}"
|
||||
git add package.json
|
||||
git commit -m "Update version to ${{ github.ref_name }}"
|
||||
git push origin HEAD:main
|
||||
- name: Publish to Visual Studio Marketplace
|
||||
run: vsce pack
|
||||
env:
|
||||
@@ -44,7 +42,7 @@ jobs:
|
||||
- name: Upload VSIX to Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: "*.vsix"
|
||||
files: "nx-post-support-*.vsix"
|
||||
# generate_release_notes: true # Automatische Release Notes
|
||||
# draft: false # N
|
||||
# prerelease: false
|
||||
|
||||
Reference in New Issue
Block a user