Skip to content

Merge remote-tracking branch 'origin/main' into main #7

Merge remote-tracking branch 'origin/main' into main

Merge remote-tracking branch 'origin/main' into main #7

Workflow file for this run

name: Build Release Branch
on:
push:
branches:
- "release/*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "18.16.0"
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -f dist
if git diff --quiet && git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "Automatically built for release"
git push https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }}
fi