Skip to content

Commit daa76a0

Browse files
Updated CI
1 parent 5c4005d commit daa76a0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ jobs:
6262
- name: Run Extension Tests
6363
run: xvfb-run -a npm test
6464

65+
- name: Inject Commit Hash into Version
66+
run: |
67+
SHORT_SHA=$(git rev-parse --short HEAD)
68+
jq ".version += \"-$SHORT_SHA\"" package.json > package.json.tmp && mv package.json.tmp package.json
69+
6570
- name: Package VSIX
6671
run: npm run package:vsix
6772

0 commit comments

Comments
 (0)