This commit is contained in:
Andreea Isac 2021-11-16 10:16:12 -08:00
Родитель ac28e7dbbc
Коммит 1930012b00
1 изменённых файлов: 12 добавлений и 1 удалений

13
.github/workflows/main.yml поставляемый
Просмотреть файл

@ -25,7 +25,18 @@ jobs:
with:
node-version: '12'
check-latest: true
- name: Get Short SHA
id: get-short-sha
run: echo "::set-output name=sha::$(git rev-parse --short ${GITHUB_SHA})"
- name: Update the package version
uses: jacobtomlinson/gha-find-replace@master
with:
find: "\"version\": \"(\\d+\\.\\d+\\.\\d+)\""
replace: "\"version\": \"$1-${{ steps.get-short-sha.outputs.sha }}\""
include: "package.json"
exclude: ".git"
# Runs a single command using the runners shell
- name: Build the VSIX
run: |