Update beta-release.yaml

This commit is contained in:
Lost Paul 2024-08-05 12:55:26 +02:00 committed by GitHub
parent 53c5964727
commit 2d3cc87fac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,21 @@ jobs:
- name: Checkout main branch
run: git checkout main
- name: Update manifest-beta.json
run: |
VERSION=${{ github.ref }} # Extract version from tag
VERSION=${VERSION#refs/tags/} # Remove refs/tags/ prefix
jq --arg version "$VERSION" '.version = $version' manifest-beta.json > manifest-beta-temp.json
mv manifest-beta-temp.json manifest-beta.json
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add manifest-beta.json
git commit -m "Update manifest-beta.json to version $VERSION"
git push origin main
- name: npm build
run: |
npm install