Skip to content

Commit

Permalink
ci: patch version in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyutkarsh committed Aug 25, 2021
1 parent db523d6 commit 3fbe093
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ jobs:
unreleased: true
issues: true

- name: update pacakge.json
run: |
sed -i -e "s/^version.*/version = '${{ github.event.inputs.version }}'/" package.json
- name: update metadata in package.json
uses: onlyutkarsh/patch-files-action@v1.0.1
with:
files: "${{github.workspace}}/package.json"
patch-syntax: |
= /version => "${{ github.event.inputs.version }}"
= /displayName => "Git Config User Profiles"
= /description => "Define multiple git config user profiles and switch them easily using status bar"
- name: 📦 compile and create vsix
run: npm run package
Expand Down

0 comments on commit 3fbe093

Please sign in to comment.