File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,10 @@ jobs:
127
127
run : |
128
128
npm install js-yaml --save
129
129
node .github/scripts/generate-readme.js
130
+ - name : Update package.json with version
131
+ working-directory : src
132
+ run : |
133
+ sed -i 's/"version": "[^"]*"/"version": "${{ needs.label.outputs.release-version }}"/' package.json
130
134
- name : Checkout Pull Request Branch Again
131
135
uses : actions/checkout@v4
132
136
with :
@@ -140,8 +144,8 @@ jobs:
140
144
git config user.email "GitHub-Actions[bot]@users.noreply.github.com"
141
145
cp ${{ github.workspace }}/tmp/updated-changelog.md CHANGELOG.md
142
146
cp ${{ github.workspace }}/tmp/new-README.md README.md
143
- git add CHANGELOG.md README.md
147
+ git add CHANGELOG.md README.md package.json
144
148
if ! git diff-index --quiet HEAD; then
145
- git commit -m "Bot: Updating CHANGELOG and README for release based on #${{ github.event.pull_request.number }}"
149
+ git commit -m "Bot: Updating CHANGELOG, README and package.json for release based on #${{ github.event.pull_request.number }}"
146
150
git push origin ${{ github.event.pull_request.head.ref }}
147
151
fi
You can’t perform that action at this time.
0 commit comments