Skip to content

chore(deps-dev): bump @babel/preset-env from 7.23.2 to 7.23.3 (#76) #243

chore(deps-dev): bump @babel/preset-env from 7.23.2 to 7.23.3 (#76)

chore(deps-dev): bump @babel/preset-env from 7.23.2 to 7.23.3 (#76) #243

Workflow file for this run

name: "🌞 CI"
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "**.md"
- dist/**
- __tests__/dotnet/**
push:
branches:
- main
paths-ignore:
- "**.md"
- dist/**
- __tests__/dotnet/**
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}
- name: Set Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: "yarn"
- run: yarn install
- run: |
yarn all
- name: Compare the expected and actual dist/ directories
id: diff
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
echo "diff=true" >> $GITHUB_ENV
else
echo "diff=false" >> $GITHUB_ENV
fi
- name: commit build
id: commit
if: ${{ env.diff == 'true' }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "maxisam"
git add dist/
git commit -m "chore: build, dist updated"
git push origin ${{ github.event.pull_request.head.ref || github.ref_name }}
sha=$(git rev-parse HEAD)
echo "sha=$sha" >> $GITHUB_OUTPUT
- name: Status update
if: ${{ env.diff == 'true' }}
uses: myrotvorets/[email protected]
with:
status: "success"
sha: ${{ steps.commit.outputs.sha }}
description: "Build Dist Updated"
context: "Build Dist Updated"