File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 3939 with:
4040 github_token: ${{ secrets.TREE_STRUCTURE_TS_PAT }}
4141 release_branches: main
42+
43+ - name: Update package.json
44+ shell: pwsh
45+ env:
46+ TAG_NAME: ${{ steps.tag_version.outputs.new_tag }}
47+ run: |
48+ $env:RELEASE_VERSION = $env:TAG_NAME.replace('v', '')
49+ $content = Get-Content .\package.json
50+ $content = $content | foreach-object { $_ -replace '(?<prefix>^.+"version": ")(.+)(?<suffix>",)$', "`${prefix}$env:RELEASE_VERSION`${suffix}" }
51+ $content | foreach-object { [System.Text.RegularExpressions.Regex]::Unescape($_) } | Out-File .\package.json -Force -Encoding ascii
52+
53+ - uses: stefanzweifel/git-auto-commit-action@v4
54+ with:
55+ commit_message: "ci(package-json): :bookmark: Bumped package.json version to ${{ steps.tag_version.outputs.new_tag }}"
56+ commit_user_email: jdamaschke@visorian.com
57+ branch: main
Original file line number Diff line number Diff line change 1- name: Release
1+ name: release
22
33on:
44 push:
Original file line number Diff line number Diff line change 22
33[](https://www.npmjs.com/package/@itpropro/tree-structure-ts)
44
5- 
5+ 
66
77
88## Introduction
You can’t perform that action at this time.
0 commit comments