Add sha to vsix version
This commit is contained in:
Родитель
ac28e7dbbc
Коммит
1930012b00
|
@ -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: |
|
||||
|
|
Загрузка…
Ссылка в новой задаче