update pipline

This commit is contained in:
2025-07-20 12:08:14 +02:00
parent 7c8634b971
commit 9db2f0f7ac
+39 -35
View File
@@ -1,37 +1,41 @@
on: on:
push: push:
tags: tags:
- "*" - "*"
jobs: jobs:
build_and_publish: build_and_publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: GitHub Tag Name example - name: GitHub Tag Name example
run: | run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME" echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}" echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Install NodeJS - name: Install NodeJS
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 20
- name: Install NPM Packages - name: Install NPM Packages
run: npm i run: |
- name: Install VSCE npm i /
run: npm -g i @vscode/vsce cd ./client
- name: Build Package Files npm i
run: npm run package cd ..
- name: Update package.json Version - name: Install VSCE
run: npm version ${{ github.ref_name }} --no-git-tag-version run: npm -g i @vscode/vsce
- name: Commit and Push Changes - name: Build Package Files
run: | run: npm run package
git config user.name "${{ vars.USERNAME_GIT }}" - name: Update package.json Version
git config user.email "${{ vars.EMAIL_GIT }}" run: npm version ${{ github.ref_name }} --no-git-tag-version
git add package.json - name: Commit and Push Changes
git commit -m "Update version to ${{ github.ref_name }}" run: |
git push origin HEAD:main git config user.name "${{ vars.USERNAME_GIT }}"
- name: Publish to Visual Studio Marketplace git config user.email "${{ vars.EMAIL_GIT }}"
run: vsce publish git add package.json
env: git commit -m "Update version to ${{ github.ref_name }}"
VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }} git push origin HEAD:main
- name: Publish to Visual Studio Marketplace
run: vsce publish
env:
VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }}