Skip to content

Commit 9e184cb

Browse files
authored
Merge pull request #226 from bitpay/manual-release-workflow
Bump the version in Env.ts when we release
2 parents 404b175 + 1a5b921 commit 9e184cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
npm version ${{ github.event.inputs.bump }} --no-git-tag-version
4545
version=$(jq -r .version package.json)
4646
echo "version=$version" >> $GITHUB_OUTPUT
47-
git add package.json package-lock.json
47+
sed -i "s/^export const BitpayPluginInfo = .*$/export const BitpayPluginInfo = 'BitPay_NodeJs_Client_v$version';/" src/Env.ts
48+
git add package.json package-lock.json src/Env.ts
4849
git commit -m "Bump version to $version"
4950
git tag $version
5051
git push origin ${{ github.ref_name }}

0 commit comments

Comments
 (0)