This commit is contained in:
@@ -16,21 +16,16 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
- name: Bump Version of package.json
|
||||||
|
uses: ramonpaolo/bump-version@v2.3.1
|
||||||
|
with:
|
||||||
|
tag: ${{ github.ref_name }} # Accessing the context and get the reference_name, that in this case, is the tag that you created(ex: v1.0.0)
|
||||||
|
commit: true
|
||||||
|
branch_to_push: 'main'
|
||||||
- name: Install NPM Packages
|
- name: Install NPM Packages
|
||||||
run: npm i
|
run: npm i
|
||||||
- name: Install VSCE
|
- name: Install VSCE
|
||||||
run: npm -g i @vscode/vsce
|
run: npm -g i @vscode/vsce
|
||||||
- name: Update package.json version
|
|
||||||
run: |
|
|
||||||
TAG_NAME=${{ github.ref_name }}
|
|
||||||
npm version --no-git-tag-version $TAG_NAME
|
|
||||||
- name: Commit changes
|
|
||||||
run: |
|
|
||||||
git config user.name ${{ vars.USERNAME_GIT}}
|
|
||||||
git config user.email ${{ vars.EMAIL_GIT}}
|
|
||||||
git add package.json
|
|
||||||
git commit -m "Update package.json version to $TAG_NAME"
|
|
||||||
git push origin HEAD
|
|
||||||
- name: Build Package Files
|
- name: Build Package Files
|
||||||
run: npm run package
|
run: npm run package
|
||||||
- name: Publish to Visual Studio Marketplace
|
- name: Publish to Visual Studio Marketplace
|
||||||
|
|||||||
Reference in New Issue
Block a user