One more CI fix (#119)

* One more CI fix

* Remove test code
This commit is contained in:
Pierre Jacquier
2023-04-25 05:43:45 -04:00
committed by GitHub
parent f54ee58ff8
commit 064c95b475

View File

@ -27,8 +27,11 @@ jobs:
- name: Set release version to .json files and commit to main - name: Set release version to .json files and commit to main
if: github.event_name == 'release' if: github.event_name == 'release'
env:
BRANCH: main
run: | run: |
git checkout main git fetch origin
git checkout $BRANCH
echo "$(jq --arg v "${RELEASE#v}" '.version=$v' package.json --indent 4)" > package.json echo "$(jq --arg v "${RELEASE#v}" '.version=$v' package.json --indent 4)" > package.json
echo "$(jq --arg v "${RELEASE#v}" '.version=$v' public/manifest.json --indent 4)" > public/manifest.json echo "$(jq --arg v "${RELEASE#v}" '.version=$v' public/manifest.json --indent 4)" > public/manifest.json
git diff git diff
@ -36,7 +39,7 @@ jobs:
git config user.name github-actions git config user.name github-actions
git config user.email github-actions@github.com git config user.email github-actions@github.com
git commit -m "Align versions with $RELEASE" git commit -m "Align versions with $RELEASE"
git push git push origin $BRANCH
- run: yarn build - run: yarn build